• 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:

    63 64 71 65 65 69
    66 69 70 70 70 69
    71 73 75 73 73 72
    76 77 77 77 79 78
    80 82 81 84 88 81
    

    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.

About

Avatar for malaire @malaire started