matthijskooijman / arduino-lmic

:warning: This library is deprecated, see the README for alternatives.
704 stars 651 forks source link

Node not joining (remains in status EV_JOINING) #147

Open I-Connect opened 6 years ago

I-Connect commented 6 years ago

Hi,

I had the issue that my node was not joining TTN properly

See: https://www.thethingsnetwork.org/forum/t/lmic-does-not-receive-join-accept/13079/7

Adding this to the setup part of the sketch did the trick:

// Let LMIC compensate for +/- 1% clock error
LMIC_setClockError(MAX_CLOCK_ERROR * 1 / 100);

Maybe you could add this in an #ifdef

For specific boards?

Regards, Jeroen

Tom61 commented 6 years ago

Thx. I had the same issue. But this works for me (on Arduino Pro Mini).