A
A
Artur Aralin2015-11-28 18:52:54
Arduino
Artur Aralin, 2015-11-28 18:52:54

Why is data lost when sending to esp8266?

Hello! I have an Arduino UNO with an esp8266-1 module connected to it. And everything would be fine, but when sending data from NodeJS, they are distorted on the arduino.
The data is sent via TCP.

...
socket.write("SOMECMD\n");

They are read like this:
...
if(espSerial.avaliable()) {
ch = espSerial.read(); //char
str += ch; //string
}

And the distortions themselves:
Sent by RAN
+IPD,3:[email protected] arrives and similar distortions

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Skorzhinsky, 2015-11-28
@AndyKorg

Please look at the forum , maybe it will help you.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question