You are reading a single comment by @malaire and its replies.
Click here to read the full conversation.
-
I'm now including milliseconds also for more precision. Bangle.js 2 doesn't support setting time at millisecond precision, but this works quite nicely (wait until next exact second and then set time):
let delta = 1000 - (received_time % 1000); setTimeout(function() { setTime((received_time + delta) / 1000); }, delta);
Oh nice :-)
BTW one possibility for Service Data is to advertise "Date Time" 0x2A08 as per https://forum.micropython.org/viewtopic.php?t=9577&p=53698
it is 7 bytes format
Then one could pass options
{filters: [{serviceData:{"2a08":{}}}]}
and it should work. I tried it with ESP32 running espruino and it worked for meOn ESP32 I've run
and then on another device this worked