Network Find#
Callbacks for Network Find Component.
Callbacks#
Finish forming or joining process.
Get radio power for a channel.
Join a network.
Get the energy threshold for a channel.
Get enable scanning all channels.
Callbacks Documentation#
emberAfPluginNetworkFindFinishedCallback#
void emberAfPluginNetworkFindFinishedCallback (EmberStatus status)
Finish forming or joining process.
N/A | status | Ver.: always |
This callback is fired when the network-find plugin is finished with the forming or joining process. The result of the operation will be returned in the status parameter.
122
of file app/framework/plugin/network-find/network-find.h
emberAfPluginNetworkFindGetRadioPowerForChannelCallback#
int8_t emberAfPluginNetworkFindGetRadioPowerForChannelCallback (uint8_t pgChan)
Get radio power for a channel.
N/A | pgChan | Ver.: always |
This callback is called by the framework when it is setting the radio power during the discovery process. The framework will set the radio power depending on what is returned by this callback.
132
of file app/framework/plugin/network-find/network-find.h
emberAfPluginNetworkFindJoinCallback#
bool emberAfPluginNetworkFindJoinCallback (EmberZigbeeNetwork * networkFound, uint8_t lqi, int8_t rssi)
Join a network.
N/A | networkFound | Ver.: always |
N/A | lqi | Ver.: always |
N/A | rssi | Ver.: always |
This callback is called by the plugin when a joinable network has been found. If the application returns true, the plugin will attempt to join the network. Otherwise, the plugin will ignore the network and continue searching. Applications can use this callback to implement a network blacklist.
146
of file app/framework/plugin/network-find/network-find.h
emberAfPluginNetworkFindGetEnergyThresholdForChannelCallback#
int8_t emberAfPluginNetworkFindGetEnergyThresholdForChannelCallback (uint8_t pgChan)
Get the energy threshold for a channel.
N/A | pgChan | Ver.: always |
This callback is called during the energy scan when forming the network. Should the energy level exceed the value returned by this callback, the current channel will not be considered a suitable candidate for forming. Should none of the channels in the channel mask be considered suitable, the scan will fall back on all channels, including those not on the channel mask. The return value is RSSI, in dBm. This callback is called only when the fallback functionality is enabled.
162
of file app/framework/plugin/network-find/network-find.h
emberAfPluginNetworkFindGetEnableScanningAllChannelsCallback#
bool emberAfPluginNetworkFindGetEnableScanningAllChannelsCallback (void )
Get enable scanning all channels.
N/A |
Returns true is the fallback on scanning all channels is enabled, false if not.
169
of file app/framework/plugin/network-find/network-find.h