Definition: This API is used to set various LoRaWAN MAC attributes that are stored in the MAC data base (DB).
Syntax
StackRetStatus_t LORAWAN_SetAttr(LorawanAttributes_t attrType, void *attrValue);
Input Parameters
Parameter Name |
Parameter Type |
Description |
---|---|---|
attrType |
LorawanAttributes_t |
List of LoRaWAN attributes. Refer to Table 1 for a list of defined attrType names. |
attrValue |
Void pointer |
Value of attribute type. |
Return Type and Values
Parameter Name |
Parameter Type |
Description |
---|---|---|
|
ENUM |
Enumerated values containing all return types from LoRaWAN layers |
Return Value |
Reason |
---|---|
LORAWAN_SUCCESS |
LoRaWAN join procedure is successfully initiated |
LORAWAN_INVALID_PARAMETER |
Set attribute type is invalid |
LORAWAN_BUSY |
MAC layer is not IDLE. Set attribute function cannot be performed. |
API Type – Synchronous