-
• #2
It depends. On Espruino side there are 2 values to tune
NRF.setConnectionInterval(interval)
for connected device - this one is relevant when you are reading value set by NRF.updateServices.
Connection interval is shortest possible time for any BLE request packet to get response packet. However if you are subscribed to notifications without requesting/reading the value then you may get it without asking but still even in this case value updated by NRF.updateServices will get sent at the beginning of next connection intervalNRF.setAdvertising(data, options)
-options.interval
if you are advertising the data without connection. for advertising there is also random 0-10ms extra delay suggested by BLE specs -
• #3
Thanks so much for the response, it helps alot!
On the 2nd generation device, how long will it take for accelerometer data to get to my computer to process it, how long is the lag?