Maybe you could try connecting to the bulb and getting the services and characteristics, and then keeping a reference to the characteristic variable. Next time you connect literally just connect and write to the characteristic.
I know you say 'instant', but that's actually really speedy and might make things a lot easier for you.
If power usage isn't a big deal then yes, I'd say use scanning for advertising packets - and then the 'middle' Puck can set its advertising data up to relay what it received to the second one. It should be pretty straightforward to implement, even with a continuous connection to the light bulb.
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.
Maybe you could try connecting to the bulb and getting the services and characteristics, and then keeping a reference to the
characteristic
variable. Next time you connect literally just connect and write to the characteristic.I know you say 'instant', but that's actually really speedy and might make things a lot easier for you.
If power usage isn't a big deal then yes, I'd say use scanning for advertising packets - and then the 'middle' Puck can set its advertising data up to relay what it received to the second one. It should be pretty straightforward to implement, even with a continuous connection to the light bulb.