arduino-lorawan
arduino-lorawan copied to clipboard
If this->NetBegin() fails, shutdown the LMIC.
If provisioning style is kNone, this->NetBegin() will fail. But this leaves the LMIC enabled, so if the user tries to send, the LMIC will start trying to join (with invalid credentials). This is at least confusing and at worst mystifying.
We should call LMIC_shutdown() if NetBegin() fails. This should cause TXs to bounce.