-
• #2
dSnd
should automatically send, if the ESP8266 thinks it is capable of receiving data. Are you sure that the WiFi connection hasn't dropped out or something? -
• #3
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
Edit2
That event (
Wifi.on('disconnected', ...)
) is not working for me.
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?