Advertising is the way puck sends simplest signal. With suggested approach you do not even enter bidirectional communication.
Take a look at Advertising.
In the example there, puck changes advertisement every button press: a value is incremented and this value is advertised.
On the receiving - or interested - side, a scan for devices is issued, which will pick-up the advertisement. That's all there is.
© Espruino, powered by microcosm.
Report a problem