I've created another WiFi network with an Apple Airport hub and everything is fine now. There is definitely something 'in' my BT hub that is stopping the connections. I'll have a poke about.
WebSockets is not working as expected at the moment. I'm wanting to create a server on the Expruino and then connect to it from a client running in Chrome.
On the Chrome side I connect like this:
var socket = new WebSocket("ws://"+matrixip);
socket.onopen = function(event) {
console.log("Connected to WebSocket");
};
socket.onerror = function(e) {
console.log('WebSocket Error: '+e);
};
But the connection never completes from Chrome with this error:
'ws://192.168.1.111/' failed: Error during WebSocket handshake: Response must not include 'Sec-WebSocket-Protocol' header if not present in request: undefined
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.
Thanks Gordon,
I've created another WiFi network with an Apple Airport hub and everything is fine now. There is definitely something 'in' my BT hub that is stopping the connections. I'll have a poke about.
WebSockets is not working as expected at the moment. I'm wanting to create a server on the Expruino and then connect to it from a client running in Chrome.
On the Chrome side I connect like this:
And later on simply:
And on the Espruino:
But the connection never completes from Chrome with this error:
Any thoughts?
Sean