Post topics, source code that relate to the Arduino Platform

User avatar
By clwy
#34711 Hey,

I am trying to communicate with esp8266 to others via udp. The esp itself is connected via serial to my arduino.

My esp8266 is able to connect to my wifi and when using a tcp connection, all works fine. But it's not what I want to do.

For using udp I tried:

Code: Select allAT+CWMODE=1
OK
AT+CWJAP="SSID","PW"
OK
AT+CIPMUX=0
OK
AT+CIPSTART="UDP","0",0,1337,2
OK

So far, so good.

When I try to send a message to the esp, I get an icmp paket back ("port unreachable").
When using

Code: Select allAT+CIPSEND=...

it says "type error".

btw, something like

Code: Select allAT+CIPSTART=4,"UDP","xxx.xxx.xxx.xxx",1337

leads to a Link typ ERROR.

Firmware of the esp is 0018000902-AI03.

Please, can somebody tell me where the mistake is?

Thanks!