arduino-lorawan icon indicating copy to clipboard operation
arduino-lorawan copied to clipboard

If this->NetBegin() fails, shutdown the LMIC.

Open terrillmoore opened this issue 6 years ago • 0 comments

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.

terrillmoore avatar Apr 13 '19 01:04 terrillmoore