Hello!
I'm developing a standalone web page that shows the data of the sensors of the BangleJS 2 plus some beacons. This page contains a JavaScript code that uploads the code on-the-fly using Puck.JS write() function, which I think is like writing to the console in the Web IDE, as showed in the https://www.espruino.com/Bangle.js+Data+Streaming tutorial
The problem is that the code I use on the Bangle uses the Layout library. If I try to run the code using the Web IDE, everything works ok, but if I try to run the same code by uploading it it fails on the require("Layout") statement. The same happens if I use the REPL console of the Web IDE.
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.
Hello!
I'm developing a standalone web page that shows the data of the sensors of the BangleJS 2 plus some beacons. This page contains a JavaScript code that uploads the code on-the-fly using Puck.JS
write()
function, which I think is like writing to the console in the Web IDE, as showed in the https://www.espruino.com/Bangle.js+Data+Streaming tutorialThe problem is that the code I use on the Bangle uses the Layout library. If I try to run the code using the Web IDE, everything works ok, but if I try to run the same code by uploading it it fails on the
require("Layout")
statement. The same happens if I use the REPL console of the Web IDE.Is there a way to fix this?
3 Attachments