How to write length of value in command we are sending to BLE device??
01/23/2018 | 05:53 AM
Command structure according to cmd_gatt_write_characteristic_value command in BluetoothSmart_APIRefMan.pdf specification does not contain length of value to be written, but if the length of value to be written is specified then only value is written in remote BLE device.
0x20, 0x04 (Minimum payload length), 9 (Message class), 9(Message ID), connection handle, characteristic_handle, len(value), value( value to be written).
The value length (Highlighted above) is to be passed along with the command. Please suggest me how to do that??
Bluetooth Low Energy
Discussion Forums
Unanswered
In the BGAPI command the characteristic value is given as uint8array where the first byte defines the length.
How to write length of value in command we are sending to BLE device??
Command structure according to cmd_gatt_write_characteristic_value command in BluetoothSmart_APIRefMan.pdf specification does not contain length of value to be written, but if the length of value to be written is specified then only value is written in remote BLE device.
0x20, 0x04 (Minimum payload length), 9 (Message class), 9(Message ID), connection handle, characteristic_handle, len(value), value( value to be written).
The value length (Highlighted above) is to be passed along with the command. Please suggest me how to do that??
In the BGAPI command the characteristic value is given as uint8array where the first byte defines the length.