diff --git a/examples/demoToy/data/hsl.png b/examples/demoToy/data/hsl.png new file mode 100644 index 0000000..d767952 Binary files /dev/null and b/examples/demoToy/data/hsl.png differ diff --git a/examples/demoToy/data/main.js b/examples/demoToy/data/main.js index 30ac167..8f59ed9 100644 --- a/examples/demoToy/data/main.js +++ b/examples/demoToy/data/main.js @@ -195,10 +195,10 @@ function checkAlive() { } function startWebSocket() { - //ws = new WebSocket(socketStr); + ws = new WebSocket(socketStr); //ws = new WebSocket('ws://192.168.107.1:2222/'); //ws = new WebSocket('ws://192.168.10.1:2222/'); - ws = new WebSocket('ws://192.168.167.1:2222/'); + // ws = new WebSocket('ws://192.168.167.1:2222/'); ws.onmessage = function (event) {onMessageFunction(event); }; ws.onopen = function (event) {onOpenFunction(event); }; diff --git a/examples/demoToy/demoToy.ino b/examples/demoToy/demoToy.ino index f825b44..6a55407 100644 --- a/examples/demoToy/demoToy.ino +++ b/examples/demoToy/demoToy.ino @@ -164,9 +164,9 @@ String buildControl ( void ) { uint16_t blips = mesh.connectionCount() + 1; mesh.debugMsg( APPLICATION, "buildControl(): blips=%d\n", blips); - if ( blips > 3 ) { + if ( blips > MAX_BLIPS ) { mesh.debugMsg( APPLICATION, " blips out of range =%d\n", blips); - blips = 3; + blips = MAX_BLIPS; } StaticJsonBuffer<200> jsonBuffer;