This could be caused by a bug I found in the SIM900 driver. In the function 'receiverHandler' there is a line of code:
sockData[parms[0]] += line.substr(colon+1,parms[1]);
This needs to be changed to
sockData[parms[0]] += line.substr(colon+3,parms[1]);
I found if the whole response fitted within one handler transfer the orginal code would corrupt the response.
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.
This could be caused by a bug I found in the SIM900 driver. In the function 'receiverHandler' there is a line of code:
sockData[parms[0]] += line.substr(colon+1,parms[1]);
This needs to be changed to
sockData[parms[0]] += line.substr(colon+3,parms[1]);
I found if the whole response fitted within one handler transfer the orginal code would corrupt the response.