Developing with ZBOSS SDK for Zigbee

Macros

#define ZB_NWK_IS_ADDRESS_BROADCAST(addr)   ( (addr) >= ZB_NWK_BROADCAST_RESERVED )
 Check that address is broadcast. More...
 

Functions

zb_uint16_t zb_nwk_get_parent (void)
 

Detailed Description

Macro Definition Documentation

◆ ZB_NWK_IS_ADDRESS_BROADCAST

#define ZB_NWK_IS_ADDRESS_BROADCAST (   addr)    ( (addr) >= ZB_NWK_BROADCAST_RESERVED )

Check that address is broadcast.

Parameters
addr- 16-bit address
Returns
TRUE if address is broadcast, FALSE otherwise

Function Documentation

◆ zb_nwk_get_parent()

zb_uint16_t zb_nwk_get_parent ( void  )

Get short address of the parent node.

Returns
Short address of the parent node or ZB_UNKNOWN_SHORT_ADDR if the device isn't joined to a network.