On Sun, May 24, 2020 at 1:37 PM rolfm@dds.nl wrote:
how can my NodeMCU's become a client of the TCPserver?
Assuming you're programming it using the Arduino IDE, use the functions in WiFiClient.h to connect to the server on whatever port you want to use. Each client on [tcpserver] will have an ID that you can use to route the traffic with.
Martin
rolf
Martin Peach schreef op 24-05-2020 19:10:
On Sun, May 24, 2020 at 12:09 PM rolfm@dds.nl wrote:
@martin there will be a minimum of 12 clients (NodeMCU's). hence, i thought about using multicast. the clients themself sort out which part of the message is for them.
switching to TCP would mean a lot of connects and disconnects or as many [udpsend] objects as there are clients. am i right about this?
You could use [tcpserver], which can maintain multiple connections.
Martin