UDP multicast connection with ESP modules.

jenya7
Posts: 19
Joined: Mon Feb 24, 2020 9:14 am

UDP multicast connection with ESP modules.

Postby jenya7 » Mon Jul 05, 2021 5:39 am

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?

User avatar
mbratch
Posts: 303
Joined: Fri Jun 11, 2021 1:51 pm

Re: UDP multicast connection with ESP modules.

Postby mbratch » Tue Jul 06, 2021 4:22 pm

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.

jenya7
Posts: 19
Joined: Mon Feb 24, 2020 9:14 am

Re: UDP multicast connection with ESP modules.

Postby jenya7 » Wed Jul 07, 2021 5:49 am

Thank you.

Who is online

Users browsing this forum: No registered users and 138 guests