It seems that the 0-10ms random delay is not added to first advertisement, only to subsequent advertisements.
I'm currently testing code like this which seems to give quite steady rate of one advertisement every second (I hope to publish full code soon, maybe tomorrow):
start advertising
wait 100 ms
stop advertising
wait 900 ms
loop from beginning
For example here are differences in milliseconds of Bangle.js 2 time and my computer time for 5 minutes, one update every 10 seconds:
You can even see the clock drift here. With 1.73s/day you'd expect clock to drift 6ms in 5 minutes - at least for this short test it's clearly more than that.
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 seems that the 0-10ms random delay is not added to first advertisement, only to subsequent advertisements.
I'm currently testing code like this which seems to give quite steady rate of one advertisement every second (I hope to publish full code soon, maybe tomorrow):
For example here are differences in milliseconds of Bangle.js 2 time and my computer time for 5 minutes, one update every 10 seconds:
You can even see the clock drift here. With 1.73s/day you'd expect clock to drift 6ms in 5 minutes - at least for this short test it's clearly more than that.