net.connect's socket can not send data after some point of communication #5452
Unanswered
espruino-discuss
asked this question in
ESP8266
Replies: 1 comment
-
Posted at 2016-05-17 by @gfwilliams
Posted at 2016-05-17 by ceremcem No, the connection might be dropped... Can I detect a connection drop with a callback or something? Edit:We have another RTFM situation here: http://www.espruino.com/Reference#l_Wifi_disconnected Edit2That event ( |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Posted at 2016-05-17 by ceremcem
Hi,
I'm using
net.connect
to send and receive raw data to/from server. Client (esp8266) gets data, creates a response and sends to server. Then server asks another thing.This works as intended till a point, then esp8266 gets a data from server (a stringified JSON), prepares response, then stucks. Here is the last status of
clientSocket
that is created vianet.connect
:the
dSnd
isnt empty. Is that the root of the problem? Should I flush it?Beta Was this translation helpful? Give feedback.
All reactions