I’ve been trying to use the Espruino firmware on my Ruuvitag and I’ve also seen several examples that use the require(‘Ruuvitag’) feature.
However, whenever I try anything that uses the Ruuvitag module I just get errors.
Uncaught SyntaxError: Got ID:LIS2DH12 expected ‘,’
at line 1 col 531
…a,14),d(Modules.addCached(“LIS2DH12”,“function f(c,a,d){this…
^
=undefined
return exports.env.getData()};\nexports.getAccelData=function(a){return exports.accel.getXYZ()}”);
Uncaught ReferenceError: “exports” is not defined
at line 1 col 15
return exports.env.getData()};\nexports.getAccelData=functio…
^
I am using the EspruinoHub on my Raspberry Pi with the Web IDE.
I have exactly the same problem. Flashed the cutting-edge-build (1v99) firmware over Web IDE. But as soon as I try to access the accelerometer, it crashes with the same error msg as Cheney got. Blinking leds ie. basic stuff is working well.
Can you try with another RuuviTag or with a fresh battery? ERROR: [notify_error] Prompt not detected - upload failed. Trying to recover...
sounds like the Espruino would crash on RuuviTag
I increased your trust level on forum, hopefully you should be able to send the links from now on. Please ping me at otso@ruuvi.com if you have further issues with posting