trying to communicate via udp doesn't work
Posted: Sun Nov 22, 2015 4:25 pm
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:
So far, so good.
When I try to send a message to the esp, I get an icmp paket back ("port unreachable").
When using
it says "type error".
btw, something like
leads to a Link typ ERROR.
Firmware of the esp is 0018000902-AI03.
Please, can somebody tell me where the mistake is?
Thanks!
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 all
AT+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 all
AT+CIPSEND=...
it says "type error".
btw, something like
Code: Select all
AT+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!