• To re-synchronise an interval, I'd just clear it with clearInterval and re-start it. I was considering making a library to sync the Espruinos. My idea was:

    • Have one central Espruino that is always receiving (it never sleeps)
      • Each transmitter transmits every 60s (or whatever), receives for 1ms, and then sleeps (unless it receives something in which case it keeps listening).
    • Then it's easy for the 'central' Espruino to just wait until it receives something, and then to send any command it gets out to the receiver.
About

Avatar for Gordon @Gordon started