Hey everyone,
I just got a particle electron and I’m using a 3rd party SIM. The problem is that it is stuck in flashing green mode.
I’m in Canada, provider is Bell Mobility.
APN: pda.bell.ca
Followed the setup.particle.io process -> flashed with the custom firmware. Particle successfully connects and registers it. It flashes a very fast cyan at the end (I believe that means it works). When I power cycle and upload my code, it gets stuck in the flashing green mode.
As you can see I have the “cellular_credentials_set” line at the top.
My CLI command:
particle compile electron serial-test.ino --saveTo serial-test2-firmware.bin && particle flash --serial serial-test2-firmware.bin
Below is the code I have:
#include "cellular_hal.h"
STARTUP(cellular_credentials_set("pda.bell.ca", "", "", NULL));
void setup()
{
pinMode(D7, OUTPUT);
digitalWrite(D7, HIGH);
Serial.begin();
}
void loop()
{
if(Cellular.ready()){
Serial.println("Connected to cell network");
if(Particle.connected())
{
Particle.publish("Connected to cell network!");
}
}
else
{
Serial.println("Not connected to cell network");
}
if(Particle.connected())
{
while(1){
Particle.publish("ledstatus","ON");
Serial.println("Turn on LED");
digitalWrite(D7, HIGH);
delay(1000);
Particle.publish("ledstatus","OFF");
Serial.println("Turn off LED");
digitalWrite(D7,LOW);
delay(1000);
Particle.process();
}
}
else
Particle.connect();
}
What should I do?