zakibakar75 / arduino-lmic-as923

Added AS923 code into LMIC
15 stars 7 forks source link

FAILURE .. Arduino\libraries\MCCI_LoRaWAN_LMIC_library\src\lmic\oslmic.c:53 #2

Closed pkjavali closed 5 years ago

pkjavali commented 5 years ago

Hello, I am using Arduino Uno and Dragino LoRa Shield 1.4. I successfully imported this library and opened the sketch ttn-otaa. I made changes to the sketch replacing FILLINs for AppKey, AppEUI and DevEUI, i also did the byte ordering reversal. I could successfully compile and run, however, during run time my code is throwing the above error on the console. Any clue, why it is in my case? I thought it was rather straight forward. Thanks! Note: I have also updated config.h to define EU868

zakibakar75 commented 5 years ago

Hi, Looks like the error occured from within MCCI-based library. Can you please check again? Do you have both libraries in your library folder?.

pkjavali commented 5 years ago

Initially there were two libraries one arduino-LMIC and other one MCCI - but it was giving compile error saying 'LMIC_getSessionTokens not found' since it was always picking arduino-LMIC library, I had to delete it. Am I doing something wrong? Thanks,

zakibakar75 commented 5 years ago

I can't do much. my advice is for you to clean up your Arduino IDE, only put necessary libraries. Then, safely try again. This library was tested against UNO + Dragino LoRa Shield V1.4., No problem thus far.

pkjavali commented 5 years ago

I realized it was a goofy mix-up! I was using example from Matthis Kooijman and trying to use this library. So I cleaned up everything and used correct library "arduino-lmic-master" and ttn-otaa example from same library, made necessary modifications and it worked! Thanks a lot for your suggestions.