Version 6.1.0 of the MCCI LoRaWAN LMIC library is out: Release v6.1.0: session save and restore, accessors, sleeping between jobs, join and FSK fixes · mcci-catena/arduino-lmic · GitHub
Announcement: arduino-lmic v6.1.0: LoRaWAN sessions that survive deep sleep – MCCI
What is new:
- Improved class C support.
- Session save and restore.
LMIC_saveSessionState()andLMIC_restoreSessionState()let a device keep its session through deep sleep or a reset without joining again. You no longer need to copy theLMICstructure. - Sleeping between jobs.
os_queryNextJobTicks()andos_runloop_once_ex()report when the LMIC next needs to run. - A new example,
ttn-otaa-session-sleep, shows both. On ESP32 it keeps the session in Preferences. - FSK transmit and receive work on the SX127x and SX126x.
- Join-Requests stay within the LoRaWAN 1.0.4 airtime limits, and the DevNonce counts up.
- Accessors for the LMIC fields (
LMIC_getRSSI()returns dBm), link check requests, and run-time ADR_ACK limits.
One thing to check if you upgrade: the Class B code is untested and is no longer compiled by default. If your sketch uses beacons or ping slots, define LMIC_ENABLE_class_b as 1.
Details: arduino-lmic/doc/new-in-v6.1.md at v6.1.0 · mcci-catena/arduino-lmic · GitHub
Please report problems as issues on GitHub.