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

Table 2-14. 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

Table 2-15. Return Type

Parameter Name

Parameter Type

Description

StackRetStatus_t

ENUM

Enumerated values containing all return types from LoRaWAN layers

Table 2-16. Return Values

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