Hi i am programming a MAX30100 to transfer data via Bluetooth and i have a base code but i need to convert the data obtain into bytes. Does anyone know how to convert the data collected into bytes?
Regards,
Currypuffer
Hi i am programming a MAX30100 to transfer data via Bluetooth and i have a base code but i need to convert the data obtain into bytes. Does anyone know how to convert the data collected into bytes?
Regards,
Currypuffer
every piece of data on a binary computer is in the form of bytes. no need to convert.
what are you really asking?
Hello, I am trying to transfer data from the max30100 via bluetooth and i need to send the data in bytes but i cant seem to be transfering the data after classifying the data as byte Oxygen for example.
Therefore, i was asking if anyone knew how to convert the data type from like int to bytes.
Thank you,
Currypuffer
byte *p = (byte*) &someData;
for (int n = 0; n < sizeof(someData); n++)
send (*p++);