Open jcwren opened 7 years ago
Hey,
You need to set up the configure.h file in the LMIC library folder. Uncomment this line as follows:
// Include Class B beacon/ping support?
Now you should be able to uncomment the disable_tracking function.
-Jack
Using the demo code in examples/ttn-ota, I modified the setup() as shown below, and enabled debugging in src/lmic/config.h. If I comment out the LMIC_disableTracking() line, the code happily runs. However, when enabled, the Feather is flat locking up somewhere. Once locked up, new code can't be loaded without double-clicking the reset button to get it back to the bootloader.
I had also put some debugging code around the os_runloop_once() call. The number of times it was called depended on how much debugging output there was, leading me to think that it's a time-based event or a change in the RFM95 DIO pins that is causing the problem, not how many times it's called. The LMIC.opmode flags were set to
0x88c
across all the calls.I haven't been able to try this with a live gateway yet, so I'm not sure if the LMIC_disableTracking() call in the EV_JOINED event will hang it the same way or not.
The configuration is using
Setup code:
Output with LMIC_disableTracking() enabled:
Same code with LMIC_disableTracking() commented out: