nl::Weave::DeviceLayer::Internal::GenericNetworkProvisioningServerImpl

Summary

Inheritance

Inherits from:
  nl::Weave::Profiles::NetworkProvisioning::NetworkProvisioningServer
  nl::Weave::Profiles::NetworkProvisioning::NetworkProvisioningDelegate

Protected types

NetworkInfo using
NetworkType_t using
PacketBuffer using
ServerBaseClass using
State enum
WiFiSecurityType_t using

Protected attributes

mScanNetworkType
uint8_t
mState
uint8_t
mTestConnectivityResult
struct nl::Weave::DeviceLayer::Internal::GenericNetworkProvisioningServerImpl::@405

Public attributes

mStatusCode
uint16_t
mStatusProfileId
uint32_t

Protected functions

ContinueThreadConnectivityTest(void)
void
ContinueWiFiConnectivityTest(void)
void
DoInit(void)
GetCurrentOp(void) const
int16_t
HandleAddNetwork(PacketBuffer *networkInfoTLV) override
HandleAddUpdateNetwork(PacketBuffer *networkInfoTLV, bool add)
HandleConnectivityTestSuccess(void)
void
HandleDisableNetwork(uint32_t networkId) override
virtual WEAVE_ERROR
Disable the specified network.
HandleEnableDisableNetwork(uint32_t networkId, bool enable)
HandleEnableNetwork(uint32_t networkId) override
virtual WEAVE_ERROR
Enable the specified network.
HandleGetNetworks(uint8_t flags) override
virtual WEAVE_ERROR
Get the configured networks.
HandleRemoveNetwork(uint32_t networkId) override
virtual WEAVE_ERROR
Remove a configured network.
HandleScanNetworks(uint8_t networkType) override
virtual WEAVE_ERROR
Perform a network scan.
HandleSetRendezvousMode(uint16_t rendezvousMode) override
virtual WEAVE_ERROR
Set the rendezvous mode.
HandleTestConnectivity(uint32_t networkId) override
virtual WEAVE_ERROR
Test the connectivity of the specified network.
HandleUpdateNetwork(PacketBuffer *networkInfoTLV) override
IsPairedToAccount(void) const override
virtual bool
Called to determine if the device is currently paired to an account.
SetThreadProvisionDefaults(bool isUpdate, DeviceNetworkInfo & netInfo)
ValidateThreadProvision(bool isUpdate, const DeviceNetworkInfo & netInfo, uint32_t & statusProfileId, uint16_t & statusCode)
ValidateWiFiStationProvision(const DeviceNetworkInfo & netInfo, uint32_t & statusProfileId, uint16_t & statusCode)
_GetDelegate(void)
NetworkProvisioningDelegate *
_OnPlatformEvent(const WeaveDeviceEvent *event)
void
_ScanInProgress(void)
bool
_StartPendingScan(void)
void

Protected static functions

HandleConnectivityTestTimeOut(::nl::Weave::System::Layer *aLayer, void *aAppState, ::nl::Weave::System::Error aError)
void

Protected types

NetworkInfo

::nl::Weave::DeviceLayer::Internal::DeviceNetworkInfo NetworkInfo

NetworkType_t

::nl::Weave::Profiles::NetworkProvisioning::NetworkType NetworkType_t

PacketBuffer

::nl::Weave::System::PacketBuffer PacketBuffer

ServerBaseClass

::nl::Weave::Profiles::NetworkProvisioning::NetworkProvisioningServer ServerBaseClass

State

 State

WiFiSecurityType_t

::nl::Weave::Profiles::NetworkProvisioning::WiFiSecurityType WiFiSecurityType_t

Protected attributes

mScanNetworkType

uint8_t mScanNetworkType

mState

uint8_t mState

mTestConnectivityResult

struct nl::Weave::DeviceLayer::Internal::GenericNetworkProvisioningServerImpl::@405 mTestConnectivityResult

Public attributes

mStatusCode

uint16_t mStatusCode

mStatusProfileId

uint32_t mStatusProfileId

Protected functions

ContinueThreadConnectivityTest

void ContinueThreadConnectivityTest(
  void
)

ContinueWiFiConnectivityTest

void ContinueWiFiConnectivityTest(
  void
)

DoInit

WEAVE_ERROR DoInit(
  void
)

GetCurrentOp

int16_t GetCurrentOp(
  void
) const 

HandleAddNetwork

WEAVE_ERROR HandleAddNetwork(
  PacketBuffer *networkInfoTLV
) override

HandleAddUpdateNetwork

WEAVE_ERROR HandleAddUpdateNetwork(
  PacketBuffer *networkInfoTLV,
  bool add
)

HandleConnectivityTestSuccess

void HandleConnectivityTestSuccess(
  void
)

HandleDisableNetwork

virtual WEAVE_ERROR HandleDisableNetwork(
  uint32_t networkId
) override

Disable the specified network.

Details
Parameters
[in] networkId
The ID of the network to disable.
Return Values
WEAVE_NO_ERROR
On success.
other
Other Weave or platform-specific error codes indicating that an error occurred preventing the device from disabling the network.

HandleEnableDisableNetwork

WEAVE_ERROR HandleEnableDisableNetwork(
  uint32_t networkId,
  bool enable
)

HandleEnableNetwork

virtual WEAVE_ERROR HandleEnableNetwork(
  uint32_t networkId
) override

Enable the specified network.

Details
Parameters
[in] networkId
The ID of the network to enable.
Return Values
WEAVE_NO_ERROR
On success.
other
Other Weave or platform-specific error codes indicating that an error occurred preventing the device from enabling the network.

HandleGetNetworks

virtual WEAVE_ERROR HandleGetNetworks(
  uint8_t flags
) override

Get the configured networks.

Details
Parameters
[in] flags
Flags to filter the retrieved networks.
Return Values
WEAVE_NO_ERROR
On success.
other
Other Weave or platform-specific error codes indicating that an error occurred preventing the device from getting the configured networks.

HandleRemoveNetwork

virtual WEAVE_ERROR HandleRemoveNetwork(
  uint32_t networkId
) override

Remove a configured network.

Details
Parameters
[in] networkId
The ID of the network to remove.
Return Values
WEAVE_NO_ERROR
On success.
other
Other Weave or platform-specific error codes indicating that an error occurred preventing the device from removing the network.

HandleScanNetworks

virtual WEAVE_ERROR HandleScanNetworks(
  uint8_t networkType
) override

Perform a network scan.

Details
Parameters
[in] networkType
The technology (for example, WiFi or Thread) to scan.
Return Values
WEAVE_NO_ERROR
On success.
other
Other Weave or platform-specific error codes indicating that an error occurred preventing the device from performing a network scan.
See also:
#NetworkType for valid types.

HandleSetRendezvousMode

virtual WEAVE_ERROR HandleSetRendezvousMode(
  uint16_t rendezvousMode
) override

Set the rendezvous mode.

Details
Parameters
[in] rendezvousMode
The rendezvous mode to use.
Return Values
WEAVE_NO_ERROR
On success.
other
Other Weave or platform-specific error codes indicating that an error occurred preventing the device from setting the rendezvous mode.
See also:
#RendezvousModeFlags for valid modes.

HandleTestConnectivity

virtual WEAVE_ERROR HandleTestConnectivity(
  uint32_t networkId
) override

Test the connectivity of the specified network.

Details
Parameters
[in] networkId
The ID of the network to test the connectivity of.
Return Values
WEAVE_NO_ERROR
On success.
other
Other Weave or platform-specific error codes indicating that an error occurred preventing the device from testing connectivity.

HandleUpdateNetwork

WEAVE_ERROR HandleUpdateNetwork(
  PacketBuffer *networkInfoTLV
) override

IsPairedToAccount

virtual bool IsPairedToAccount(
  void
) const override

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

SetThreadProvisionDefaults

WEAVE_ERROR SetThreadProvisionDefaults(
  bool isUpdate,
  DeviceNetworkInfo & netInfo
)

ValidateThreadProvision

WEAVE_ERROR ValidateThreadProvision(
  bool isUpdate,
  const DeviceNetworkInfo & netInfo,
  uint32_t & statusProfileId,
  uint16_t & statusCode
)

ValidateWiFiStationProvision

WEAVE_ERROR ValidateWiFiStationProvision(
  const DeviceNetworkInfo & netInfo,
  uint32_t & statusProfileId,
  uint16_t & statusCode
)

_GetDelegate

NetworkProvisioningDelegate * _GetDelegate(
  void
)

_OnPlatformEvent

void _OnPlatformEvent(
  const WeaveDeviceEvent *event
)

_ScanInProgress

bool _ScanInProgress(
  void
)

_StartPendingScan

void _StartPendingScan(
  void
)

Protected static functions

HandleConnectivityTestTimeOut

void HandleConnectivityTestTimeOut(
  ::nl::Weave::System::Layer *aLayer,
  void *aAppState,
  ::nl::Weave::System::Error aError
)