net module: data receiving unreliable? #6071
Replies: 1 comment
-
Posted at 2019-02-11 by HaraldK Maybe i should simple not use those ESP8266 anymore... ESP32 tested and works 100% as expected. BTW in both cases I use v2.0x (x=0 for ESP32, x=1 for ESP8266). Posted at 2019-02-11 by @allObjects Yes, ESP8266 is not the strongest... it has single processor and you may run into resource contentions... (What else is running on it, especially in JS?). The other thing I'm not sure about is: is data always a complete send / receive? or could it be chopped and you have to compose the message? What speaks against this is that the output always starts with the begin of a sent message. A third thing is: is your power supply ok? EPS8266 do spikes in current for calibration of the (RF) transmission. What kind of 8266 are you using? Posted at 2019-02-11 by HaraldK Nothing else running on it. I had more, but to debug this problem I removed anything else (not that much was running since it's very much space constrained). |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2019-02-11 by HaraldK
Hi,
I have a small ESP8266 module which is supposed to receive simple data via simple TCP. The net module should do that and it works mostly:
On the sender side I do a simple test via netcat:
But what I get on the Espruino side is:
which is not what I'd expect from TCP. I should see 0, 1, 2, 3, 4.
Even if I send one string at a time (and not 5 in a loop), it gets lost in about 20% of the cases.
Am I doing something wrong? Is the net module on ESP8266 not working reliably?
Beta Was this translation helpful? Give feedback.
All reactions