User avatar
By tochinet
#31835 Interesting idea. Note however that TCP/IP is by definition a Client/Server paradigm, so peer-to-peer communication needs to be adapted to one of both options below :
- all nodes are clients, and there is one additional "gateway" or "hub" node that relays communication between them. This is used for both e-mail and MQTT for example. Disadvantages are that you have a SPOF and a two-hops channel.
- all nodes are both clients and server, and the application makes abstraction of that characteristic. Given the way the ESP API is defined, that could be a nice solution for you. I'd recommend a simple packet format and one "standard" UDP port everyone listens to. But you'll need to invent pretty much of it.