Hi Ducky, thanks for this example.
I added a line to print the value of msg in the console...
var server = require('ws').createServer(onPageRequestÂ);
server.listen(8000);
server.on("websocket", function(ws) {
ws.on('message',function(msg) {
console.log("Pos = "+msg);
});
});
I've connected to the ESP8266 over TCP using the Espruino Web IDE so I can see the console.
On the PC I see the value updating as I move the controls but when I try the same from a tablet or phone I don't see the value of msg updating, I've tried chrome and safari browsers, why?
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.
Hi Ducky, thanks for this example.
I added a line to print the value of msg in the console...
I've connected to the ESP8266 over TCP using the Espruino Web IDE so I can see the console.
On the PC I see the value updating as I move the controls but when I try the same from a tablet or phone I don't see the value of msg updating, I've tried chrome and safari browsers, why?