0.01.00
ot::EnergyScanClient Class Reference

This class implements handling PANID Query Requests. More...

#include <src/core/meshcop/energy_scan_client.hpp>

Inheritance diagram for ot::EnergyScanClient:
ot::InstanceLocator

Public Member Functions

 EnergyScanClient (otInstance &aInstance)
 This constructor initializes the object.
 
otError SendQuery (uint32_t aChannelMask, uint8_t aCount, uint16_t aPeriod, uint16_t aScanDuration, const Ip6::Address &aAddress, otCommissionerEnergyReportCallback aCallback, void *aContext)
 This method sends an Energy Scan Query message. More...
 
- Public Member Functions inherited from ot::InstanceLocator
otInstanceGetInstance (void) const
 This method returns a reference to the parent otInstance structure. More...
 
Ip6::Ip6GetIp6 (void) const
 This method returns a reference to the Ip6. More...
 
ThreadNetifGetNetif (void) const
 This method returns a reference to the thread network interface. More...
 

Additional Inherited Members

- Protected Member Functions inherited from ot::InstanceLocator
 InstanceLocator (otInstance &aInstance)
 This constructor initializes the object. More...
 

Detailed Description

This class implements handling PANID Query Requests.

Member Function Documentation

§ SendQuery()

otError ot::EnergyScanClient::SendQuery ( uint32_t  aChannelMask,
uint8_t  aCount,
uint16_t  aPeriod,
uint16_t  aScanDuration,
const Ip6::Address aAddress,
otCommissionerEnergyReportCallback  aCallback,
void *  aContext 
)

This method sends an Energy Scan Query message.

Parameters
[in]aChannelMaskThe channel mask value.
[in]aCountThe number of energy measurements per channel.
[in]aPeriodThe time between energy measurements (milliseconds).
[in]aScanDurationThe scan duration for each energy measurement (milliseconds).
[in]aAddressA pointer to the IPv6 destination.
[in]aCallbackA pointer to a function called on receiving an Energy Report message.
[in]aContextA pointer to application-specific context.
Return values
OT_ERROR_NONESuccessfully enqueued the Energy Scan Query message.
OT_ERROR_NO_BUFSInsufficient buffers to generate an Energy Scan Query message.

The documentation for this class was generated from the following file: