Hi all,
I'm experimenting the implementation of a mini MQTT broker on the ESP32, using an existing MQTT broker library.
So far it seems to work well, stable and reliable (I'm actually using an ESP32-S3) so I'm implementing all the functionality to configure it easily using a terminal.
It should be limited at around 10 devices but I think that this is more than enough for a typical home use.
If someone is interested into testing it, I'll be happy to share.
What about a mini MQTT broker on the ESP32?
- cicciocb
- Site Admin
- Posts: 2784
- Joined: Mon Feb 03, 2020 1:15 pm
- Location: Toulouse
- Has thanked: 592 times
- Been thanked: 1990 times
- Contact:
Re: What about a mini MQTT broker on the ESP32?
I would be interested in helping to test this , it fits exactly into my "wiretool" current project which I have just posted an update to [Local Link Removed for Guests]
-
- Posts: 79
- Joined: Mon Feb 27, 2023 12:56 pm
- Location: Berlin
- Has thanked: 29 times
- Been thanked: 18 times
Re: What about a mini MQTT broker on the ESP32?
Good morning Francesco,
I would also like to test it.
Are the normal functions available at the same time as the MqttBroker functionality?
Monki
I would also like to test it.
Are the normal functions available at the same time as the MqttBroker functionality?
Monki
-
- Posts: 163
- Joined: Fri Dec 09, 2022 10:03 am
- Location: Flensburg Deutschland
- Has thanked: 114 times
- Been thanked: 25 times
Re: What about a mini MQTT broker on the ESP32?
That sounds really exciting, I would be very interested.
As I judge you, Francesco, it's going to be awesome.
Thank you for your time.
As I judge you, Francesco, it's going to be awesome.
Thank you for your time.
Re: What about a mini MQTT broker on the ESP32?
I also would be interested (but might 16 devices be possible?).
What are the various benefits and drawbacks to MQTT, UDP, and ESP-Now--alone and together?
Do you see this MQTT option used in conjunction with the other communication methods?
What are the various benefits and drawbacks to MQTT, UDP, and ESP-Now--alone and together?
Do you see this MQTT option used in conjunction with the other communication methods?
- Electroguard
- Posts: 1094
- Joined: Mon Feb 08, 2021 6:22 pm
- Has thanked: 373 times
- Been thanked: 392 times
Re: What about a mini MQTT broker on the ESP32?
I don't use MQTT (yet).
For those who do, and have more than 8 clients, perhaps it might be possible to have multiple Annex MQTT Servers each with up to 8 clients all able to co-exist (just a thought).
For those who do, and have more than 8 clients, perhaps it might be possible to have multiple Annex MQTT Servers each with up to 8 clients all able to co-exist (just a thought).
- cicciocb
- Site Admin
- Posts: 2784
- Joined: Mon Feb 03, 2020 1:15 pm
- Location: Toulouse
- Has thanked: 592 times
- Been thanked: 1990 times
- Contact:
Re: What about a mini MQTT broker on the ESP32?
The actual implementation I did is just a MQTT broker inside an esp32, and the limit on the users is given by the SDK (the os inside). I'll try to see if this can coexist with Annex even if this will limit more the number of connections.
For who shown their availability for testing, thanks, I'll contact you as soon as I'll have something useable.
For who shown their availability for testing, thanks, I'll contact you as soon as I'll have something useable.
-
- Posts: 163
- Joined: Fri Dec 09, 2022 10:03 am
- Location: Flensburg Deutschland
- Has thanked: 114 times
- Been thanked: 25 times
Re: What about a mini MQTT broker on the ESP32?
Is the memory limiting the number of topics and payloads?
- cicciocb
- Site Admin
- Posts: 2784
- Joined: Mon Feb 03, 2020 1:15 pm
- Location: Toulouse
- Has thanked: 592 times
- Been thanked: 1990 times
- Contact:
Re: What about a mini MQTT broker on the ESP32?
Not really, in particular for modules with psram this should not be an issue. The limit is on the networks side as the TCP embedded code has a limited number of simultaneous connections.[Local Link Removed for Guests] wrote: [Local Link Removed for Guests]Sun Oct 13, 2024 12:33 pm Is the memory limiting the number of topics and payloads?
info : https://github.com/alexCajas/EmbeddedMq ... -on-esp32-
Re: What about a mini MQTT broker on the ESP32?
The small number of TCP connections is not a huge problem to me (see my [Local Link Removed for Guests]) as if you want to use MQTT exclusively you would use , say ,use a RPI Zero instead, where you have the capability of 1000(s) of connections.
The advantage ,to me, is to give simply the ability of a MQTT broker within the ESP32 to allow the android display capabilities for an ESP32 project on an Android phone, so no LCD hardware and software development required.
Annex has lots of capability for other types of connections to sensors etc that can be used and then aggregate the data into groups and present to the broker via a single TCP connection.
This approach then leaves what TCP connections are available to use where individual device connections must be used.
The advantage ,to me, is to give simply the ability of a MQTT broker within the ESP32 to allow the android display capabilities for an ESP32 project on an Android phone, so no LCD hardware and software development required.
Annex has lots of capability for other types of connections to sensors etc that can be used and then aggregate the data into groups and present to the broker via a single TCP connection.
This approach then leaves what TCP connections are available to use where individual device connections must be used.