I would like to write a value using FITNESS_MACHINE_CONTROL_POINT Characteristics but I don't understand why the value should be a string, I would better understand if it would be a Uint8Array. Moreover, I see that the value is converted to a Uint8Array using TextEncoder.
Hello,
I would like to write a value using FITNESS_MACHINE_CONTROL_POINT Characteristics but I don't understand why the value should be a string, I would better understand if it would be a Uint8Array. Moreover, I see that the value is converted to a Uint8Array using TextEncoder.
Should I use it like that:
.write( BluetoothGATTServices.FITNESS_MACHINE, BluetoothGATTCharacteristics.FITNESS_MACHINE_CONTROL_POINT, String.fromCharCode(5) + String.fromCharCode(130))
Thanks,