-
Notifications
You must be signed in to change notification settings - Fork 573
Description
Using the server example and the html in the test subfolder, the updates (time messages) come in at 1 update every second. If I lower the html polling interval to <100ms it crashes with a message LmacRxBlk:1, which as I understand is a full buffer, but can't find a way to circumvent this. Is this maybe a bug?
I can't figure out what is wrong. Any help appreciated!
I tried to attach the html code but can't. Below the html with all <> replaced by []
[html]
[head]
[script]
var connection = new WebSocket('ws://192.168.0.13:81/test', ['arduino']);
connection.onopen = function () {
connection.send('Message from Browser to ESP8266 yay its Working!! ' + new Date());
connection.send('ping');
setTimeout(refresh,3000);
};
connection.onerror = function (error) {
console.log('WebSocket Error ', error);
};
connection.onmessage = function (e) {
console.log('Server: ', e.data);
};
function refresh(){
connection.send('Time: ' + new Date());
setTimeout(refresh,50);
}
[/script]
[/head]
[body]
Test Websocket.
[/body]
[/html]