Git Product home page Git Product logo

Comments (9)

ramdor avatar ramdor commented on May 25, 2024 1

Seems to be a good compromise Gil. There is still the rare possibility of corruption and a disconnection, which is now handled fine anyway. I feel with the flush/nosync the communications became far too slow. The noDelay which also stops the nagle algorithm is ok 👍 Cheers.

from arduinowebsockets.

ramdor avatar ramdor commented on May 25, 2024 1

@gilmaimon no, I have left my project run for hours and hours, no disconnects. It is sending and receiving a 20char message about 5 per second when 'idle'. I will add some debug code tomorrow to count up any reconnects, and keep a message count,, and display on the oled1306 👍

from arduinowebsockets.

gilmaimon avatar gilmaimon commented on May 25, 2024 1

@ramdor Awesome. Thank You!

I'm keeping the issue open for few more days just in case there will be any additional input :)

from arduinowebsockets.

gilmaimon avatar gilmaimon commented on May 25, 2024 1

Thank You @ramdor for the help. I am closing this issue until further re-productions.

from arduinowebsockets.

gilmaimon avatar gilmaimon commented on May 25, 2024

ESP8266 networking was fixed in this release b7c00e3
Now communication is sync. ESP32's networking is still problematic when sending many messages without any (or very little) delay.

This issue might help: espressif/arduino-esp32#2576

from arduinowebsockets.

gilmaimon avatar gilmaimon commented on May 25, 2024

Both platforms (Esp8266 and 32) adressed in release b1164a6
Current solution is the usage of setNoDelay(true)

from arduinowebsockets.

gilmaimon avatar gilmaimon commented on May 25, 2024

@ramdor Have you experianced any disconnection with non-intensive usage?

from arduinowebsockets.

ramdor avatar ramdor commented on May 25, 2024

some initial results of just over 1 hour run time

sent message string from esp8266 : rx_smeter:0,0;
received message string into esp8266 : rx_smeter:0,0,-123;

connection attempts : 1
successful connections : 1
send message count : 82453
received message count : 82453

which works out to be around 23 out bound messages per second, 23 inbound/s

I would say it is working fine !!! 👍 x 💯

from arduinowebsockets.

ramdor avatar ramdor commented on May 25, 2024

ok, 12hrs...
connection attempts : 1
successful connections : 1
send message count : 907613
received message count : 907613

averaged about 21 msgs per second 🥇

from arduinowebsockets.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.