Closed mtbspace closed 3 years ago
I think this may be device dependent, but I couldn't get things working reliably on my T-Beam until I added this in the the ttn_join() function in ttn.ino (add after LMIC_reset()):
LMIC_setClockError(MAX_CLOCK_ERROR * 5 / 100);
As per this discussion on the ttn forums: https://www.thethingsnetwork.org/forum/t/lmic-on-adafruit-lora-feather-successfully-sends-message-to-ttn-and-then-halts-with-packet-queued/3762/35
Although 5 worked for me, different devices might need different values depending on their clock accuracy. May be worth making it configurable?
Just made it an editable option
I think this may be device dependent, but I couldn't get things working reliably on my T-Beam until I added this in the the ttn_join() function in ttn.ino (add after LMIC_reset()):
LMIC_setClockError(MAX_CLOCK_ERROR * 5 / 100);
As per this discussion on the ttn forums: https://www.thethingsnetwork.org/forum/t/lmic-on-adafruit-lora-feather-successfully-sends-message-to-ttn-and-then-halts-with-packet-queued/3762/35