class NetworkProvisioningDelegate

Defined at line 247 of file x64-shared/gen/third_party/openweave-core/src/include/Weave/Profiles/network-provisioning/NetworkProvisioning.h

Delegate class for implementing Network Provisioning operations.

Public Members

NetworkProvisioningServer * Server

Public Methods

WEAVE_ERROR HandleScanNetworks (uint8_t networkType)

Perform a network scan.

Parameters

networkType [in] The technology (for example, WiFi or Thread) to scan.
WEAVE_ERROR HandleAddNetwork (PacketBuffer * networkInfoTLV)

Add a particular network.

Parameters

networkInfoTLV [in] The network configuration encoded in TLV.
WEAVE_ERROR HandleUpdateNetwork (PacketBuffer * networkInfoTLV)

Update a network's configuration.

Parameters

networkInfoTLV [in] The network configuration encoded in TLV.
WEAVE_ERROR HandleRemoveNetwork (uint32_t networkId)

Remove a configured network.

Parameters

networkId [in] The ID of the network to remove.
WEAVE_ERROR HandleGetNetworks (uint8_t flags)

Get the configured networks.

Parameters

flags [in] Flags to filter the retrieved networks.
WEAVE_ERROR HandleEnableNetwork (uint32_t networkId)

Enable the specified network.

Parameters

networkId [in] The ID of the network to enable.
WEAVE_ERROR HandleDisableNetwork (uint32_t networkId)

Disable the specified network.

Parameters

networkId [in] The ID of the network to disable.
WEAVE_ERROR HandleTestConnectivity (uint32_t networkId)

Test the connectivity of the specified network.

Parameters

networkId [in] The ID of the network to test the connectivity of.
WEAVE_ERROR HandleSetRendezvousMode (uint16_t rendezvousMode)

Set the rendezvous mode.

Parameters

rendezvousMode [in] The rendezvous mode to use.
WEAVE_ERROR HandleGetWirelessRegulatoryConfig ()

Get wireless regulatory configuration information.

WEAVE_ERROR HandleSetWirelessRegulatoryConfig (PacketBuffer * regConfigTLV)

Set wireless regulatory configuration information.

Parameters

regConfigTLV [in] A packet buffer containing the new wireless regulatory configuration information encoded in TLV format.
void EnforceAccessControl (ExchangeContext * ec, uint32_t msgProfileId, uint8_t msgType, const WeaveMessageInfo * msgInfo, AccessControlResult & result)

Enforce message-level access control for an incoming Network Provisioning request message.

Parameters

ec [in] The ExchangeContext over which the message was received.
msgProfileId [in] The profile id of the received message.
msgType [in] The message type of the received message.
msgInfo [in] A WeaveMessageInfo structure containing information about the received message.
result [in] An enumerated value describing the result of access control policy evaluation for the received message. Upon entry to the method, the value represents the tentative result at the current point in the evaluation process. Upon return, the result is expected to represent the final assessment of access control policy for the message.
bool IsPairedToAccount ()

Called to determine if the device is currently paired to an account.

TODO: make this pure virtual when product code provides appropriate implementations.