LoRaWAN/MAC Attributes

Note: All LoRaWAN MAC Attributes are set or read using the LORAWAN_SetAttr, or LORAWAN_GetAttr APIs, respectively. Refer to LORAWAN_SetAttr and LORAWAN_GetAttr.
Table 1. LoRaWAN/MAC Attributes

Name (attrType)

Type

Range

Address

Default

ACKTIMEOUT

uint16

0x0000-0xffff

Read/Write

0x7D0

ADR

bool

True (Enabled) False (Disabled)

Read/Write

ADR_ACKDELAY

uint8

0x00-0xff

Read/Write

0x20

ADR_ACKLIMIT

uint8

0x00-0xff

Read/Write

0x40

APPS_KEY

uint8[16]

Read/Write

APP_EUI

uint8[8]

Read/Write

APP_KEY

uint8[16]

Read/Write

AUTOREPLY

bool

True, False

Read/Write

BATTERY

uint8

0x00-0xff

Read/Write

0xff (Battery level invalid)

CH_PARAM_FREQUENCY

uint32

0x00000000-0xffffffff

Read/Write

CH_PARAM_DR_RANGE

uint8

Read/Write

CH_PARAM_STATUS

bool

True, False

Read/Write

CURRENT_DATARATE

uint8

DR0-DR7

Read/Write

DR0

DEV_ADDR

uint32

0x00000000-0xffffffff

Read/Write

DEV_EUI

uint8[8]

Read/Write

DOWNLINK_COUNTER

uint32

0x00000000-0xffffffff

Read/Write

EDCLASS

uint8

0 (Class A), 1 (Class B), 2 (Class C)

Read/Write

0 (Class A)

EDCLASS_SUPPORTED

uint8

1 (Class A), 5 (Class A and Class C)

Read/Write

LORAWAN_ SUPPORTED_ ED_CLASSES

FHSS_CALLBACK

FHSSCallback_t (function pointer)

Valid function address

Read/Write

ISMBAND

uint8

0x00-0xff

Read Only

ISM_EU868

JOINACCEPT_DELAY1

uint16

0x0000-0xffff

Read/Write

0x1388

JOINACCEPT_DELAY2

uint16

0x0000-0xffff

Read/Write

0x1770

LINK_CHECK_GWCNT

uint8

0x00-0xff

Read Only

0x00

LINK_CHECK_MARGIN

uint8

0x00-0xff

Read Only

0xff

LINK_CHECK_PERIOD

uint16

0x0000-0xffff

Read/Write

0x0000

LORAWAN_STATUS

uint32

0x00000000-0xffffffff

Read Only

0x00

MAX_FCOUNT_GAP

uint16

0x0000-0xffff

Read/Write

0x4000

MCAST_APPS_KEY

uint8[16]

Read/Write

MCAST_ENABLE

bool

True, False

Read/Write

0x00

MCAST_FCNT_DOWN

uint16

0x0000-0xffff

Read Only

MCAST_GROUP_ADDR

uint32

0x00000000-0xffffffff

Read/Write

MCAST_NWKS_KEY

uint8[16]

Read/Write

NWKS_KEY

uint8[16]

Read/Write

CNF_RETRANSMISSION_NUM

uint8

0x00-0xff

Read/Write

UNCNF_REPETITION_NUM

uint8

0x00-0xff

Read/Write

RX2_WINDOW_PARAMS

ReceiveWindow2 Params_t (ENUM)

Read/Write

Specific to region

RX_DELAY1

uint16

0x0000-0xffff

Read/Write

0x3e8

RX_DELAY2

uint16

0x0000-0xffff

Read/Write

0x7d0

SYNC_WORD

uint8

0x00-0xff

Read/Write

0x34

TX_POWER

uint8

For EU: 0 to 5, for NA: 5,7,8,9,10

Read/Write

For EU: 1, For NA: 7

UPLINK_COUNTER

uint32

0x00000000-0xffffffff

Read/Write

0x00000000