Electron vs. Boron – “living on the edge” – what has changed with the cellular connection?

Make sure you put the code below on the Borons and Xenons so you will be able to reset the Xenons out in the field should they stop responding to Borons request. It’s helping bring Xenons back online after a reset or firmware flash of the Boron during my testing.

I put this on the Boron

int handleReset(String command) {
    Mesh.publish("reset", "ok");
    return 1;
}
void setup() {
    Particle.function("reset", handleReset);
}

and this on the Xenons

void handleNeedReset(const char *event, const char *data) {
    System.reset();
}
void setup() {
    Mesh.subscribe("reset", handleNeedReset);
}
7 Likes