LoRa Basics™ Modem User Manual v1.0 documentation
LoRa Basics™ Modem Events Definitions¶
When the LoRa Basics™ Modem is initialized, a callback function is passed to the smtc_modem_init(...)
command. This callback signals that a new asynchronous event has occurred. The following event types are used in LoRa Basics Modem.
Events |
Description |
---|---|
SMTC_MODEM_EVENT_RESET |
Modem has been reset |
SMTC_MODEM_EVENT_ALARM |
Alarm timer expired |
SMTC_MODEM_EVENT_JOINED |
Network successfully joined |
SMTC_MODEM_EVENT_TXDONE |
Frame transmitted |
SMTC_MODEM_EVENT_DOWNDATA |
Downlink data received |
SMTC_MODEM_EVENT_UPLOADDONE |
File upload completed |
SMTC_MODEM_EVENT_SETCONF |
Configuration was changed by Device Management |
SMTC_MODEM_EVENT_MUTE |
Modem muted / un-muted by Device Management |
SMTC_MODEM_EVENT_STREAMDONE |
Stream upload completed (stream data buffer depleted) |
SMTC_MODEM_EVENT_JOINFAIL |
Attempt to join network failed |
SMTC_MODEM_EVENT_TIME |
Time Updated (synced or invalid) |
SMTC_MODEM_EVENT_TIMEOUT_ADR_CHANGED |
ADR profile was switched to network-controlled |
SMTC_MODEM_EVENT_NEW_LINK_ADR |
New link ADR was requested by the network |
SMTC_MODEM_EVENT_LINK_CHECK |
Link Check answered by network |
SMTC_MODEM_EVENT_ALMANAC_UPDATE |
An almanac update has been received |
SMTC_MODEM_EVENT_USER_RADIO_ACCESS |
Radio callback when user uses the radio by itself |
SMTC_MODEM_EVENT_NONE |
No event available |
Note
Events can be retrieved through the function smtc_modem_get_event(...)
.