LoRa Basics™ Modem User Manual v1.0 documentation

LoRa Basics™ Modem API return codes

The LoRa Basics™ Modem API functions return a value of type smtc_modem_return_code_t, called the Return Code. The Return Code signals the result of the command’s execution. The following table lists the Return Codes used in the LoRa Basics Modem API.

LoRa Basics Modem API Return Codes

Return Code

Description

SMTC_MODEM_RC_OK

Command executed without errors

SMTC_MODEM_RC_NOT_INIT

Command not initialized

SMTC_MODEM_RC_INVALID

Command parameters invalid

SMTC_MODEM_RC_BUSY

Command cannot be executed now

SMTC_MODEM_RC_FAIL

Command execution failed

SMTC_MODEM_RC_BAD_SIZE

Size check failed

SMTC_MODEM_RC_NO_TIME

No time available

SMTC_MODEM_RC_INVALID_STACK_ID

Invalid stack_id parameter