Hi all,
I am trying to use the BLECharacteristic.writeValue() to send a 64bit data at once. For example:
uint64_t data;
BLECharacteristic.writeValue(data);
The compiler showed an error saying that the writeValue() is overloaded. The maximum is 32bit.
Is there a way to overcome this limit?
Note: I am not trying to split the 64bit data into 8 bytes. Since it won't work in my case. The Peripheral device I am trying to communicate receives 64 bit data at once and then executes an action. This means if one byte is received, it will treat the one byte data as a 64bit one and executes the wrong action or returns an error message.
For example:
I want to send 31 31 31 31 30 30 30 30
if sent by byte, the peripheral will treat them as 8 separate communications as:
31 0 0 0 0 0 0 0
31 0 0 0 0 0 0 0
31 0 0 0 0 0 0 0
31 0 0 0 0 0 0 0
30 0 0 0 0 0 0 0
30 0 0 0 0 0 0 0
30 0 0 0 0 0 0 0
30 0 0 0 0 0 0 0
Any help is appreciated.
Thanks,