Page 1 of 1

ESP32 - How to start a UDP socket

Posted: Tue Dec 21, 2021 11:39 am
by dario.cillerai
Hi,

I would like to create a socket UDP (broadcast) to accept requests on port 8000.

In ESP-AT User Guide, the command AT+CIPSERVER is present to create a server, but UDP is not accepted as a type.

How can I accomplish that?

Thanks and Regards

Re: ESP32 - How to start a UDP socket

Posted: Tue Dec 28, 2021 9:54 am
by Helen L

Re: ESP32 - How to start a UDP socket

Posted: Thu Dec 30, 2021 3:50 am
by ESP_Alson
you can execute AT+CIPSTART=4,"UDP","192.168.3.102",8080,8000,2 in multiple connectins. For the <”remote host”> and <remote port> parameters, you just need to meet the specifications (It means you can set it freely, but it should meet the specifications)