Can I just clarify something regarding BLE notifications. Does the data only get sent each time you use a setValue?
I have a small test program that picks a random number every 2 seconds and uses setValue to store that in a BLE characteristic with type NOTIFY. On the same service, I have added temperature and humidity, also as NOTIFY. Using nRF Connect, I can see the regular changing of the random number. However I don’t see a value for temperature or humidity appear until it next does the reading, even though the serial console says a value was set before I did a connect from the app.
What I eventually want to do is have a controller wake up, take some sensor readings, set this in BLE data, run for 5 seconds in the hope the gateway picks it up, but not care if the gateway misses it for some reason and go back to sleep. Is NOTIFY and setting values before I turn BLE on, the best way to achieve this?
Also, is there a way for a device to read it’s own BLE address? I can see how it can read addresses from scan results but I’m struggling to find it’s own.