Giter VIP home page Giter VIP logo

Comments (7)

martin-ger avatar martin-ger commented on August 21, 2024

from umqttbroker.

philippesikora avatar philippesikora commented on August 21, 2024

I did several test with LwIP v2 lower Memory , Higher Memory (no features), ...
It does not work with LwIP v2.
I compiled with v1.4 Higher Bandwidth and it works !!!! Thank you -:)
Can I keep v1.4 version for the project or did you find a workaround with v2 ?

from umqttbroker.

martin-ger avatar martin-ger commented on August 21, 2024

from umqttbroker.

philippesikora avatar philippesikora commented on August 21, 2024

Thank you for this great support.

from umqttbroker.

fostiras avatar fostiras commented on August 21, 2024

I Had the exact same problem. I use platformio and added "build_flags = -D PIO_FRAMEWORK_ARDUINO_LWIP_HIGHER_BANDWIDTH" in platformio.ini to use LwIP1.4 as Martin suggests. This gave me a compile error in espconn.h. Followed this issue
https://github.com/esp8266/Arduino/issues/5753 that Martin had opened and added these lines in espconn.h :

#ifndef ipv4_addr_t
#define ipv4_addr_t ip_addr_t
#endif

It compiled fine and the broker now works also fine no matter how many times a client connects/disconnects. Martin thank you so much for this broker and the great support !!!

from umqttbroker.

3gyptian avatar 3gyptian commented on August 21, 2024

I too have had to add manually add the above three lines into espconn.h (located in ~/.platformio/packages/framework-arduinoespressif8266/tools/sdk/include/) in order to get a working compile out of
"build_flags = -D PIO_FRAMEWORK_ARDUINO_LWIP_HIGHER_BANDWIDTH" and build with lwip 1.4.

This fixed the issue of the broker coming to a halt after 5 connections but I'm concerned that the next time the framework is upgraded this change will get stomped on.

Can someone suggest an alternative approach?

from umqttbroker.

martin-ger avatar martin-ger commented on August 21, 2024

This option exists and works for several years now and assume, it will persist. If not, exchanging the lwip implemantation manually is still an option. I am still not aware what causes the "5 connection" problem.

from umqttbroker.

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.