Yes, you could put an IR receiver on the Pi - the Puck isn't that long-range with IR though (around a meter).
Thing is, a normal IR signal contains a ~9ms start pulse (http://www.espruino.com/Puck.js+Infrared) and data pulses are usually ~1ms so if you transfer any data chances are it's actually going to be slower than the Bluetooth. You could send a single 1ms pulse but it's not going to be that much faster and you may get false positives.
This stops Bluetooth advertising and then restarts it when the button is pressed, for 100ms. I just tested and it sends an advertising packet immediately - however there's no guarantee that the packet will get received by the Pi because Bluetooth advertising isn't guaranteed.
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.
Yes, you could put an IR receiver on the Pi - the Puck isn't that long-range with IR though (around a meter).
Thing is, a normal IR signal contains a ~9ms start pulse (http://www.espruino.com/Puck.js+Infrared) and data pulses are usually ~1ms so if you transfer any data chances are it's actually going to be slower than the Bluetooth. You could send a single 1ms pulse but it's not going to be that much faster and you may get false positives.
You could actually do:
This stops Bluetooth advertising and then restarts it when the button is pressed, for 100ms. I just tested and it sends an advertising packet immediately - however there's no guarantee that the packet will get received by the Pi because Bluetooth advertising isn't guaranteed.