ESP32 - How to start a UDP socket

dario.cillerai
Posts: 1
Joined: Tue Dec 21, 2021 11:32 am

ESP32 - How to start a UDP socket

Postby dario.cillerai » Tue Dec 21, 2021 11:39 am

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

Helen L
Posts: 71
Joined: Thu Aug 16, 2018 9:07 am

Re: ESP32 - How to start a UDP socket

Postby Helen L » Tue Dec 28, 2021 9:54 am


ESP_Alson
Posts: 106
Joined: Mon Mar 22, 2021 3:37 am

Re: ESP32 - How to start a UDP socket

Postby ESP_Alson » Thu Dec 30, 2021 3:50 am

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)

Who is online

Users browsing this forum: No registered users and 13 guests