nl::Weave::DeviceLayer::Internal::FabricProvisioningServer

#include <src/adaptations/device-layer/include/Weave/DeviceLayer/internal/FabricProvisioningServer.h>

Implements the Weave Fabric Provisioning profile for a Weave device.

Summary

Inheritance

Inherits from:
  nl::Weave::Profiles::FabricProvisioning::FabricProvisioningServer
  nl::Weave::Profiles::FabricProvisioning::FabricProvisioningDelegate

Public functions

HandleCreateFabric(void) override
virtual WEAVE_ERROR
Indicates that the device has created a new Fabric.
HandleGetFabricConfig(void) override
virtual WEAVE_ERROR
Indicates that the configuration of the current Weave Fabric has been requested.
HandleJoinExistingFabric(void) override
virtual WEAVE_ERROR
Indicates that the device has joined an existing Fabric.
HandleLeaveFabric(void) override
virtual WEAVE_ERROR
Indicates that the device has left a Fabric.
Init()
IsPairedToAccount() const override
virtual bool
Called to determine if the device is currently paired to an account.
LeaveFabric(void)
OnPlatformEvent(const WeaveDeviceEvent *event)
void

Protected functions

FabricProvisioningServer()=default
FabricProvisioningServer(const FabricProvisioningServer &)=delete
FabricProvisioningServer(const FabricProvisioningServer &&)=delete
operator=(const FabricProvisioningServer &)=delete
~FabricProvisioningServer()=default

Public functions

HandleCreateFabric

virtual WEAVE_ERROR HandleCreateFabric(
  void
) override

Indicates that the device has created a new Fabric.

Details
Return Values
WEAVE_NO_ERROR
On success.
other
Other Weave or platform-specific error codes indicating that an error occurred preventing the device from creating a fabric.

HandleGetFabricConfig

virtual WEAVE_ERROR HandleGetFabricConfig(
  void
) override

Indicates that the configuration of the current Weave Fabric has been requested.

Details
Return Values
WEAVE_NO_ERROR
On success.
other
Other Weave or platform-specific error codes indicating that an error occurred preventing the device from returning the fabric config.

HandleJoinExistingFabric

virtual WEAVE_ERROR HandleJoinExistingFabric(
  void
) override

Indicates that the device has joined an existing Fabric.

Details
Return Values
WEAVE_NO_ERROR
On success.
other
Other Weave or platform-specific error codes indicating that an error occurred preventing the device from joining the fabric.

HandleLeaveFabric

virtual WEAVE_ERROR HandleLeaveFabric(
  void
) override

Indicates that the device has left a Fabric.

Details
Return Values
WEAVE_NO_ERROR
On success.
other
Other Weave or platform-specific error codes indicating that an error occurred preventing the device from leaving the fabric.

Init

WEAVE_ERROR Init()

IsPairedToAccount

virtual bool IsPairedToAccount() const override

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

LeaveFabric

WEAVE_ERROR LeaveFabric(
  void
)

OnPlatformEvent

void OnPlatformEvent(
  const WeaveDeviceEvent *event
)

Protected functions

FabricProvisioningServer

 FabricProvisioningServer()=default

FabricProvisioningServer

 FabricProvisioningServer(
  const FabricProvisioningServer &
)=delete

FabricProvisioningServer

 FabricProvisioningServer(
  const FabricProvisioningServer &&
)=delete

operator=

FabricProvisioningServer & operator=(
  const FabricProvisioningServer &
)=delete

~FabricProvisioningServer

 ~FabricProvisioningServer()=default