Excuse me this issue may not be SIM900 related, which performs quite good with the module... see my fix below:
Whenever I reset my SIM900 (switch it totally off) and would run a JSON-Request after reset it throws this kind of error, even I am online:
req start
Closed: undefined
Uncaught SyntaxError: Got ID:total_documents expected ':'
at line 3 col 3
{"total_documents":0,"result"l_documents":0,"result":""}:""}
^
in function called from system
However when I first doing a request with a non JSON result say the hello-request with a text result. The consecutive calls with JSON will NOT fail.
If someone has a hint, please tell me. kind regards, Alex
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.
Excuse me this issue may not be SIM900 related, which performs quite good with the module... see my fix below:
Whenever I reset my SIM900 (switch it totally off) and would run a JSON-Request after reset it throws this kind of error, even I am online:
req start
Closed: undefined
Uncaught SyntaxError: Got ID:total_documents expected ':'
at line 3 col 3
{"total_documents":0,"result"l_documents":0,"result":""}:""}
^
in function called from system
However when I first doing a request with a non JSON result say the hello-request with a text result. The consecutive calls with JSON will NOT fail.
If someone has a hint, please tell me. kind regards, Alex