As the title says... Chat on...

User avatar
By Lorenzo
#46012 Hello, i'm working in a proyect that the esp8266 send a Udp Message and then, the esp8266 receive an Other Udp Message.

This Is my script:
Clte=net.createConnection(net.udp)
Clte:on('receive', function(Clte, response) print(response) end)
Clte:send(string.char(01,02,03)) --original Message
Clte:connect(123,'192.168.1.3')

The esp8266 can send the Udp Message (original Message). But when the esp8266 receives the Message, the esp8266 prints an string that is different to the real Message that is sended to the esp8266. I can change the Message that is sended to esp8266, But the esp8266 always prints the same response.

Can anybody help me?
User avatar
By TerryE
#46385 What are you ending to? The send will be failing because it should follow the connect.