BLE notify
Posted: Thu Apr 07, 2022 1:05 pm
Hi All,
https://raw.githubusercontent.com/RuiSa ... Client.ino
//Activate notify
const uint8_t notificationOn[] = {0x1, 0x0};
const uint8_t notificationOff[] = {0x0, 0x0};
1) i went thru the BLE client code above , is the arrangement of 0x1 , 0x0 by LSB format?
2) since is 8-bit, can we do this instead or am i missing something?
const uint8_t notificationOn = 0x01;
const uint8_t notificationOff = 0x00;
pls advise.
Thanks.
https://raw.githubusercontent.com/RuiSa ... Client.ino
//Activate notify
const uint8_t notificationOn[] = {0x1, 0x0};
const uint8_t notificationOff[] = {0x0, 0x0};
1) i went thru the BLE client code above , is the arrangement of 0x1 , 0x0 by LSB format?
2) since is 8-bit, can we do this instead or am i missing something?
const uint8_t notificationOn = 0x01;
const uint8_t notificationOff = 0x00;
pls advise.
Thanks.