Giter VIP home page Giter VIP logo

Comments (10)

RudyFiero avatar RudyFiero commented on August 21, 2024 1

Just a clarification. There can be more devices as long as they are not all connected. If you had information only going one way you could have a device connect, send data, then disconnect. And as long as you don't have too many simultaneous events that cause an overload then it should work.

from umqttbroker.

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

ESP32 is on my agenda, but currently I am really busy with my other life. This porting is mainly an issue for task and TCP conection handling.

The broker will clearly benefit from the additional RAM.

from umqttbroker.

RudyFiero avatar RudyFiero commented on August 21, 2024

The broker will clearly benefit from the additional RAM.

That was my thought. I also read that the maximum number of sockets for the ESP32 is 16. If that were the case for the uBroker, it would be able to handle everything I could want to connect.

I wish I had the knowledge to move this forward. My abilities are mainly on hardware design.

from umqttbroker.

RayyanTahir avatar RayyanTahir commented on August 21, 2024

@RudyFiero by 16 sockets did you mean 16 clients that the broker would be able to handle at a time on ESP32?

from umqttbroker.

RudyFiero avatar RudyFiero commented on August 21, 2024

Generally speaking, yes. A client uses a socket.

A network socket is an internal endpoint for sending or receiving data within a node on a computer network.

There are trade-offs. If the message sizes are large then memory can become a limiting factor.

from umqttbroker.

agicquel avatar agicquel commented on August 21, 2024

Hello Martin and other devs, I need to use your lib on a ESP32 device and I can try to port the lib. Could you give us any clue about what is causing the crash ?

from umqttbroker.

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

Three things have to be ported: tasking, TCP connections and IP-addresses:

  • the lib uses NONOS SDK's task concept (an internal non-preemtive task, that is actiavted by events). This has to be ported to FreeRTOS task - probably a minor issue.
  • the lib uses the "espconn"-routines for network interfacing. On the ESP32 this has been changed to sockets. This is a major issue to change.
  • On the ESP8266 all addresses are IPv4 32-bit values. A proper ESP32 implementation should be able to handle IPv6, at least it should be aware of the proper types.

from umqttbroker.

EmbeddedParth avatar EmbeddedParth commented on August 21, 2024

Do you think it will be any easier to port it on Olimex ESP32-POE? We can make use of Ethernet PHY instead of WiFi.

from umqttbroker.

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

Guess, this doesn't make a major difference for the issues mentioned before.

from umqttbroker.

FernandoGarcia avatar FernandoGarcia commented on August 21, 2024

Hi @martin-ger !

Any news for this feature?

Best regards.

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.