This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Merging multiple measurements sent as a single value
#1
I am trying to increase data throughput over Bluetooth, one of my ideas was to pack multiple measurements and send them together, utilizing the whole MTU.

From what I found, you can append buffers, but I would need to interleave them instead, alternating between all the outputs from Bluetooth input.
Is there a way to unpack this data and serialize it to a buffer?
Reply
#2
You are likely looking for the “repeating” argument at https://phyphox.org/wiki/index.php/Bluet..._functions Smile
Reply
#3
(08-21-2024, 08:07 PM)milos Wrote: I am trying to increase data throughput over Bluetooth, one of my ideas was to pack multiple measurements and send them together, utilizing the whole MTU.

From what I found, you can append buffers, but I would need to interleave them instead, alternating between all the outputs from Bluetooth input.
Is there a way to unpack this data and serialize it to a buffer?

That seems to be the solution, thanks for the quick reply  Big Grin
Reply
#4
Thanks to Sebastian knowing it by heart and saving me from looking it up… Wink
Reply


Forum Jump: