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 interval
NRF.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
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
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 interval
NRF.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