Hi,
I received Electron and it is working nice with Particle SIM in Japan.
Now that I've got a local SIM with good data plan deal, I'm trying to connect with it but Electron keep blinking green and does not connect. I'd appreciate any advice.
The SIM I've got is So-net 0 SIM. They offer monthly 500MB for free and additional data at JPY100/100MB. Should be a dream deal for low traffic IoT devices
Here's APN info I received from the provider.
APN: so-net.jp
Username: nuro
Password: nuro
Authentication type: CHAP or PAP
I was not sure how to set APN with username and password at the setup page thus followed this instruction to use STARTUP macro.
https://docs.particle.io/reference/firmware/electron/#setcredentials-
Here is the source code:
#include "cellular_hal.h"
STARTUP(cellular_credentials_set("so-net.jp", "nuro", "nuro", NULL));
int led1 = D0;
int led2 = D7;
void setup() {
pinMode(led1, OUTPUT);
pinMode(led2, OUTPUT);
}
void loop() {
digitalWrite(led1, HIGH);
digitalWrite(led2, HIGH);
delay(1000);
digitalWrite(led1, LOW);
digitalWrite(led2, LOW);
delay(1000);
}
Compiled it and flashed it with command:
particle flash --usb firmware.bin
With So-net 0SIM card, the Electron keeps blinking green and does not connect to network...
Commenting out the STARTUP macro line, compile and flash, the Electron with Particle SIM connects to the network alright so I'm sure the HW setup is ok.
I'd appreciate any advice. Does Electron support Authentication type: CHAP or PAP?