I'm considering using esp-mesh to increase the routing capacities of our many devices, so that they are not directly connected to the router and also the range of the network can extend beyond its reach.
But I'm finding it difficult to establish whether or not esp-mesh will work together with the default protocols of existing libraries such as MQTT (mqtt_client.h), STNP (esp_sntp.h) or HTTP (esp_http_client.h) and websockets (esp_websocket_client.h). As far as I can tell, those modules use functions that do not root on a common abstraction layer which is altered by esp-mesh, which means that I would have to rewrite even basic TLS functionality to work with esp-mesh. Is this assumption correct?
Is it possible to use default protocols over mesh network (SNTP, HTTP, MQTT, Websockets)?
Re: Is it possible to use default protocols over mesh network (SNTP, HTTP, MQTT, Websockets)?
Maybe I rewrite my question to be more clear
I want to use MQTT, Websockets and HTTP over a mesh (so every esp is communicating to the outside world with said protocols). Is this possible somehow?
I want to use MQTT, Websockets and HTTP over a mesh (so every esp is communicating to the outside world with said protocols). Is this possible somehow?
-
- Posts: 9749
- Joined: Thu Nov 26, 2015 4:08 am
Re: Is it possible to use default protocols over mesh network (SNTP, HTTP, MQTT, Websockets)?
By default, we don't support IP connectivity between internal nodes and the outside world. However, we have an example that basically sets up a NAT over the mesh protocol, allowing you to use standard IP-based protocols (the example uses MQTT.)
Re: Is it possible to use default protocols over mesh network (SNTP, HTTP, MQTT, Websockets)?
Thanks, that's exactly what I wanted to hear! I was studying said example and tried to put the pieces together (related https://www.esp32.com/viewtopic.php?f=2&t=20764). Do you have any literature that you can recommend to me to dive further down into this topic (aside from the official esp32 documentation)?
Who is online
Users browsing this forum: Baidu [Spider] and 113 guests