I have developed a simple protocol (PoMA) to communicate with an esp32 device using TCP sockets.
PoMA is a simple API that makes it possible to set and get variables from a running system.
It is motivated by the need to manage the configuration of dedicated devices (such as IoT devices) without using a local web server, i.e. a web servers running on the device. PoMA is based on the idea of Topics. For every Topic the system can handle two different kind of operations: get and set. There is also another operation to list available Topics.
Visit https://github.com/reugalabf/PoMA if you want to give it a try
Federico
[Announcement] Protocol to Set/Get values from esp32 device (PoMA)
-
- Posts: 9739
- Joined: Thu Nov 26, 2015 4:08 am
Re: [Announcement] Protocol to Set/Get values from esp32 device (PoMA)
First of all, thanks for sharing this! As a hint: if you want others to pick up this protocol as well, you probably want to define it a lot better. For instance, what characters are allowable in a set/get command? (For instance, can I set a variable to a string that has a newline in it?) How is the protocol supposed to react to non-ascii characters like backspace? How is your 'list' function wildcarding defined: is it an existing thing like some glob implementation? What is the behaviour when I set a non-existing or readonly topic? How long can a get/set operation take? Suggest adding a protocol documentation document that tries to specify this: look at for instance the Internet RFCs for a good way to approach this.
Re: [Announcement] Protocol to Set/Get values from esp32 device (PoMA)
Thanks for your comments!
Re: [Announcement] Protocol to Set/Get values from esp32 device (PoMA)
Is this a kind off MQTT (without Websocket/Webserver) I guess a sort of MQTT over TCP? If no websocket how does my browser application interact?
& I also believe that IDF CAN should be fixed.
Who is online
Users browsing this forum: No registered users and 5 guests