LORAWAN_SetAttr

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

Table 1. 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

Table 2. Return Type

Parameter Name

Parameter Type

Description

StackRetStatus_t

ENUM

Enumerated values containing all return types from LoRaWAN layers

Table 3. 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