washo4evr / Socket.io-v1.x-Library

Socket.io Library for Arduino
108 stars 58 forks source link

Client send wrong messages #48

Open huythien1708 opened 6 years ago

huythien1708 commented 6 years ago

I send Json message from client to server and it look like this:

42["device_state",{"device_id":"1","data":" "TEMPERATURE": "0", "HUMIDITY": "8", "pH": "2", "EC": "6", "LUX": "6" "}] but what i got in server is not the same and it look like this:

42["device_state",{"device_id":"1","data":" "TEMPERATURE": "02520252025202520252025202520252025202520252025202520252025202

I think problems is 2 variables mask and masked in function emit. I checked the log and saw the mask always are 2740 and 2520. So how can I emit message without using mask and masked :D

Thanks in advance !!!