2.1.6 LORAWAN_GetAttr
Definition: This API is used to get various LoRaWAN MAC attributes that are stored in the MAC data base.
Syntax
StackRetStatus_t LORAWAN_GetAttr(LorawanAttributes_t attrType, void *attrInput, void *attrOutput);
Input Parameters
Parameter Name |
Parameter Type |
Description |
---|---|---|
attrType | LorawanAttributes_t | List of LoRaWAN attributes. Refer to Table 2-38 for a list of defined attrType names. |
attrInput | Void pointer | Pointer to attribute input value |
attrOutput | Void pointer | Pointer to output value |
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