matthijskooijman / arduino-lmic

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

Join is attempted on disabled channels #88

Open dlarue opened 7 years ago

dlarue commented 7 years ago

after LMIC_disableChannel(x) is called for say channels 0-9 and again for channels 11-72 I still see join attempts on all of the US-915 subband2 frequencies. Is this a function of TTN/server doing the join requests or does the library do any handshaking to let the server know what channels are available?

christopherdro commented 6 years ago

@dlarue I'm running across the same issue. Any updates on your end?

kierenblack commented 5 years ago

I have the same problem. Why is it joining on channels I disabled?

dlarue commented 5 years ago

This fork seemed to be more actively developed - can you try it and see if it has the same issue and report back here?

https://github.com/mcci-catena/arduino-lmic

christopherdro commented 5 years ago

MCCI's library uses LMIC 1.6 and doesn't have this issue.

The bug with this lib is that it doesn't take the disabled channels into account on rejoin attempts.

I used this (https://github.com/async-la/arduino-lmic/commit/9f29f6f8cedd77a6490361990536e51bedad1d5a) hack to force the use of TTN's sub-band, but the better option would be to use library mentioned above.