The thing is that I am trying to run my electron offline to safe data while debugging, so I enter SYSTEM_MODE(SEMI_AUTOMATIC); above my code, and in the setup I put Particle.disconnect;
this works fine for the Photon , it simply breaths white and runs the code (offline) but when I put the same code to my electron it always tries to connect, I took the SIM out of the slot so it would not be connecting, and then it blinks blue (listening mode) and if I put the SIM in the slot then it simply connects, (which is should not do)
this is my test code
SYSTEM_MODE(SEMI_AUTOMATIC); // to be able to put photon/electron in offline mode
//SYSTEM_MODE(MANUAL);
void setup(){
Particle.disconnect();
//Cellular.off();
pinMode(D7,OUTPUT);
Serial.begin(9600);
}
int i;
void loop() {
i++;
digitalWrite(D7, !digitalRead(D7));
delay(4500);
Serial.println(i);
delay(500);
// System.sleep(SLEEP_MODE_DEEP,5,SLEEP_NETWORK_STANDBY); //Uses lots of data
//System.sleep(D3, RISING, 3, SLEEP_NETWORK_STANDBY);
}