UDP multicast connection with ESP modules.
Posted: 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
Is there any possibility to join Multicast Group on an ESP side?
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);