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 via net.connect:
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
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?