Page 1 of 1

UDP multicast connection with ESP modules.

Posted: Mon Jul 05, 2021 5:39 am
by jenya7
I connect to a common AP with several ESP modules. Or alternatively I configure a softAP on one and connect to it with others.
Then I should create a connection
AT+CIPSTART="UDP","172.16.1.154",8000,1112,2 - if AT+CIPMUX=0
AT+CIPSTART=4,"UDP","172.16.1.154",8000,1112,0 - if AT+CIPMUX=1
But what if I want to send broadcast messages - anyone can send to anyone and receive from anyone.
How can I do it?


On a PC side I can do

Code: Select all

UdpClient receiver = new UdpClient(localPort);  
receiver.JoinMulticastGroup(remoteAddress, 50);
Is there any possibility to join Multicast Group on an ESP side?

Re: UDP multicast connection with ESP modules.

Posted: Tue Jul 06, 2021 4:22 pm
by mbratch
Can you clarify what you mean by "anyone"? Do you mean "anyone on my subnet"? Or do you mean something else?

You might find this article of interest: Use UDP Services.

Re: UDP multicast connection with ESP modules.

Posted: Wed Jul 07, 2021 5:49 am
by jenya7
Thank you.