I wrote an small application to gather sensor data and send it directly to my server, without connecting to the particle cloud (if not specified by my server).
Unfortunately since a few months I get various “SOS” errors,… Until now it was always pretty disturbing but now it is getting permanent and I don’t have any ideas how to find the root cause of this error,.
- executing Particle.connect(); in SYSTEM_MODE(SEMI_AUTOMATIC);
- calling callular.connect when not execute cellular.on before
Serial.print(“Turn on cellular device,…”);
cellular_credentials_set(“mass.at”, “”, “”, NULL);
Turn on cellular device,…done
I tried that sketch on 2 different electrons, 2 different SIM cards, 0.6.2 on the first, 0.7.0-rc.3 on the second Electron. I compiled the code in the cloud using CLI and flashed thru USB (–serial) and even in recovery mode!
That said, the electron, the SIM and the credentials must be OK (at least somehow). There should be still plenty of heap memory free (approx 100k) just before entering cellular.connect.
And idea how I can find the cause of this error?