Modules#

Network Find

Network Find#

API and Callbacks for the Network Find Component.

NOTE: This component is deprecated in Zigbee 3.0, but is still used for Zigbee Smart Energy requirements. See the Network Creator and Network Steering components instead for Zigbee 3.0-compliant implementations of this behavior. This component provides legacy Zigbee Home Automation (pre-3.0) implementation of routines for finding and joining any viable network via scanning, rather than joining a specific network. If the application will be deployed in an environment with potentially a lot of open networks, consider implementing a mechanism for network deny listing. Network deny listing may be accomplished by implementing the emberAfPluginNetworkFindJoinCallback. To extend the functionality to sub-GHz channels, also enable the Network Find (Sub-GHz) component.

API#

EmberStatus
emberAfSetFormAndJoinChannelMask(uint8_t page, uint32_t mask)

Set the channel mask for "find unused" and "find joinable". Permitted pages are 0 and, if Sub-GHz channels are included, then also 28-31.

uint32_t

Return the channel mask for a given page. Only the bottom 27 bits can be set. The top 5 bits are reserved for the page number and are always zero in a returned channel mask. That leaves the value 0xFFFFFFFF free to indicate an invalid page error.

EmberStatus

Set the search mode for "find unused" and "find joinable". Mode is a bitmask. Permitted values are set by the FIND_AND_JOIN_MODE_... macros.

uint8_t

Returns the current search mode.

API Documentation#

emberAfSetFormAndJoinChannelMask#

EmberStatus emberAfSetFormAndJoinChannelMask (uint8_t page, uint32_t mask)

Set the channel mask for "find unused" and "find joinable". Permitted pages are 0 and, if Sub-GHz channels are included, then also 28-31.

Parameters
N/Apage
N/Amask

Definition at line 65 of file app/framework/plugin/network-find/network-find.h

emberAfGetFormAndJoinChannelMask#

uint32_t emberAfGetFormAndJoinChannelMask (uint8_t page)

Return the channel mask for a given page. Only the bottom 27 bits can be set. The top 5 bits are reserved for the page number and are always zero in a returned channel mask. That leaves the value 0xFFFFFFFF free to indicate an invalid page error.

Parameters
N/Apage

Definition at line 72 of file app/framework/plugin/network-find/network-find.h

emberAfSetFormAndJoinSearchMode#

EmberStatus emberAfSetFormAndJoinSearchMode (uint8_t mode)

Set the search mode for "find unused" and "find joinable". Mode is a bitmask. Permitted values are set by the FIND_AND_JOIN_MODE_... macros.

Parameters
N/Amode

Definition at line 78 of file app/framework/plugin/network-find/network-find.h

emberAfGetFormAndJoinSearchMode#

uint8_t emberAfGetFormAndJoinSearchMode (void )

Returns the current search mode.

Parameters
N/A

Definition at line 82 of file app/framework/plugin/network-find/network-find.h