arduino-libraries / MKRWAN

An Arduino library for sending and receiving data using LoRaWAN protocol and LoRa® radios.
https://www.arduino.cc
GNU Lesser General Public License v3.0
88 stars 60 forks source link

FirstConfiguration doesn't work on 1.1.4 #11

Closed ldesomer closed 6 years ago

ldesomer commented 6 years ago

Hi, First Configuration sketch doesn't work on fw 1.1.4. Whatever the value you set to appKey and appEui the int "connected" will be equal to 1, even if you're not connected. Same problem when using ABP instead of OTAA.

facchinm commented 6 years ago

Hi @ldesomer , I just tested it, and if I enter bogus data I always get

Error sending message :(

but connected() returns true. While it's normal in ABP mode, it shouldn't in OTAA. The FW only returns the joined event when the state machine enters DEVICE_STATE_JOINED status, so there is something wrong there

facchinm commented 6 years ago

Fixed by 05f9804, thanks for reporting!

ldesomer commented 6 years ago

Thanks for your quick reply and your help @facchinm !