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.
@allObjects started
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.
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.