I do have a question... In the sim900 module it issues the "AT+CIPSTATUS" command and what is returned from the AT module is just the first line of the response. Is there a way to get the entire response so I can compare that properly to the "STATE: IP INITIAL" response the module wants to compare.
Connecting to SIM900 module
] "\x00" <--- "\x00"
Got back
["ATE0\r\n"
] "\x00\r\nOK\r\n" <--- "\r\nOK\r\n"
["AT\r\n"
OK
["AT+CPIN?\r\n"
] "\r\nOK\r\n\r\n+CPIN: READY\r\n\r\nOK\r\n" <--- "\r\nOK\r\n\r\n+CPIN: READY\r\n\r\nOK\r\n"
OK
["AT+CGATT?\r\n"
+CPIN: READY
["AT+CIPSHUT\r\n"
OK
["AT+CIPSTATUS\r\n"
] "\r\n+CGATT: 0\r\n\r\nOK\r\n\r\nSHUT OK\r\n\r\nOK\r\n\r\nSTATE: IP INITIAL\r\n" <--- "\r\n+CGATT: 0\r\n\r\nOK\r\n\r\nSHUT OK\r\n\r\nOK\r\n\r\nSTATE: IP INITIAL\r\n"
+CGATT: 0
Error in 4: +CGATT: 0
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.
I do have a question... In the sim900 module it issues the "AT+CIPSTATUS" command and what is returned from the AT module is just the first line of the response. Is there a way to get the entire response so I can compare that properly to the "STATE: IP INITIAL" response the module wants to compare.
Connecting to SIM900 module
] "\x00" <--- "\x00"
Got back
["ATE0\r\n"
] "\x00\r\nOK\r\n" <--- "\r\nOK\r\n"
["AT\r\n"
OK
["AT+CPIN?\r\n"
] "\r\nOK\r\n\r\n+CPIN: READY\r\n\r\nOK\r\n" <--- "\r\nOK\r\n\r\n+CPIN: READY\r\n\r\nOK\r\n"
OK
["AT+CGATT?\r\n"
+CPIN: READY
["AT+CIPSHUT\r\n"
OK
["AT+CIPSTATUS\r\n"
] "\r\n+CGATT: 0\r\n\r\nOK\r\n\r\nSHUT OK\r\n\r\nOK\r\n\r\nSTATE: IP INITIAL\r\n" <--- "\r\n+CGATT: 0\r\n\r\nOK\r\n\r\nSHUT OK\r\n\r\nOK\r\n\r\nSTATE: IP INITIAL\r\n"
+CGATT: 0
Error in 4: +CGATT: 0