-
• #2
You just use exactly the same code. The
puck.js
library works fine on any Bluetooth Espruino.If you tried the first example on https://www.espruino.com/Puck.js+Web+Bluetooth that'd have worked just fine.
The issue is the code that you're running is actually calling the function
Puck.light()
on the device itself. There is no light sensor on the board you're trying, so it has noPuck.light()
function and the call causes an error.If you replace
Puck.light()
for something all boards have likeE.getTemperature()
then it'd be fine.
Sun 2018.11.11
Reading over:
I would like to do the same using both the Pixl and MDBT42Q.
Of course I had to try, can see the paired Pixl, but am greeted with (which makes sense of course) error:
Not able to locate a suitable tutorial.
If there currently isn't an equivalent, what might the expected deployment date time frame be?