Hi,
I have been debugging a few applications and it seems I found the source of my problems. As soon a the Electron receives an SMS the led starts to flash red a few times and then the Electron reboot and continue. I am using an third party sim and send and receive SMSs only.
SYSTEM_MODE(MANUAL);
SerialLogHandler logHandler(LOG_LEVEL_ALL);
int pos;
char szReturn[32] = "";
#define TIMEOUT 1000
int callback(int type, const char* buf, int len, char* param)
{
delay(100);
return WAIT;
}
void setup()
{
Serial.begin(9600);
Cellular.on();
delay(3000);
}
void loop()
{
Cellular.command(callback, szReturn, TIMEOUT, "AT+CSQ\r\n");
Serial.println(szReturn);
pos = pos + 1;
Serial.println(pos);
delay(1000);
}
All help would be appreciated.