Page 1 of 1

BLE notify

Posted: Thu Apr 07, 2022 1:05 pm
by 666hjk
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.

Re: BLE notify

Posted: Thu Apr 07, 2022 5:48 pm
by chegewara
BLE does not care what you are sending, from protocol point of view its just a bunch of bytes.

1. its just 2 bytes without a meaning, for example you can ON with 0 and OFF with 1
2. yes

Re: BLE notify

Posted: Wed Jul 20, 2022 10:56 am
by 666hjk
noted.