I’m trying to send quite a large data (more than 10kB) in one JSON message via TCP Socket Embedded API at the moment. I have no problem to send a normal small sized JSON message through the socket using MKR GSM 1400.
The data is image data in base64 string, as the binary data not supported in JSON. I’d succeed to send the data in certain image size. But as the image size getting bigger, I kept getting error response from my debug output. At first I thought that the culprit was the SW-side of the MKR GSM library. So to proof it, I used the netcat console to send data with different size through the socket. With payload message with 10kB size, the sending was successful. But at 12kB, I got the response code [2,0], means couldn’t parsed the message. It is perhaps due to the limitation of JSON parser on the server.
So the question is, did anyone know the maximum data size that can be send in one message via Socket API?
I know it is possible to just send the image data by multiple packets, but if I knew the maximum allowed data size that can be handled by the parser, it will be an advantage on saving the data usage.