nl::Weave::DeviceLayer::TraitManager

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

管理 Weave 设备的 Weave Data Management 特征的发布和订阅。

摘要

公共类型

ServiceSubscriptionMode 枚举

好友课程

::nl::Weave::DeviceLayer::PlatformManagerImpl
friend class
Internal::GenericPlatformManagerImpl
friend class
Internal::GenericPlatformManagerImpl_FreeRTOS
friend class

公共函数

GetServiceSubscribeConfirmIntervalMS(void) const
uint32_t
GetServiceSubscriptionMode(void)
ServiceSubscriptionMode
IsServiceSubscriptionEstablished(void)
bool
PublishTrait(const uint64_t & instanceId, TraitDataSource *dataSource)
PublishTrait(const ResourceIdentifier & resId, const uint64_t & instanceId, TraitDataSource *dataSource)
SetServiceSubscribeConfirmIntervalMS(uint32_t val) const
SetServiceSubscriptionMode(ServiceSubscriptionMode val)
SubscribeServiceTrait(const ResourceIdentifier & resId, const uint64_t & instanceId, PropertyPathHandle basePathHandle, TraitDataSink *dataSink)
UnpublishTrait(TraitDataSource *dataSource)
UnsubscribeServiceTrait(TraitDataSink *dataSink)

受保护的函数

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

公共类型

ServiceSubscriptionMode

 ServiceSubscriptionMode

好友课程

::nl::Weave::DeviceLayer::PlatformManagerImpl

friend class ::nl::Weave::DeviceLayer::PlatformManagerImpl

内部::GenericPlatformManagerImpl

friend class Internal::GenericPlatformManagerImpl

Internal::GenericPlatformManagerImpl_FreeRTOS

friend class Internal::GenericPlatformManagerImpl_FreeRTOS

公共函数

GetServiceSubscribeConfirmIntervalMS

uint32_t GetServiceSubscribeConfirmIntervalMS(
  void
) const 

GetServiceSubscriptionMode

ServiceSubscriptionMode GetServiceSubscriptionMode(
  void
)

IsServiceSubscriptionEstablished

bool IsServiceSubscriptionEstablished(
  void
)

PublishTrait

WEAVE_ERROR PublishTrait(
  const uint64_t & instanceId,
  TraitDataSource *dataSource
)

PublishTrait

WEAVE_ERROR PublishTrait(
  const ResourceIdentifier & resId,
  const uint64_t & instanceId,
  TraitDataSource *dataSource
)

SetServiceSubscribeConfirmIntervalMS

WEAVE_ERROR SetServiceSubscribeConfirmIntervalMS(
  uint32_t val
) const 

SetServiceSubscriptionMode

WEAVE_ERROR SetServiceSubscriptionMode(
  ServiceSubscriptionMode val
)

SubscribeServiceTrait

WEAVE_ERROR SubscribeServiceTrait(
  const ResourceIdentifier & resId,
  const uint64_t & instanceId,
  PropertyPathHandle basePathHandle,
  TraitDataSink *dataSink
)

UnpublishTrait

WEAVE_ERROR UnpublishTrait(
  TraitDataSource *dataSource
)

UnsubscribeServiceTrait

WEAVE_ERROR UnsubscribeServiceTrait(
  TraitDataSink *dataSink
)

受保护的函数

TraitManager

 TraitManager()=default

TraitManager

 TraitManager(
  const TraitManager &
)=delete

TraitManager

 TraitManager(
  const TraitManager &&
)=delete

operator=

TraitManager & operator=(
  const TraitManager &
)=delete

~TraitManager

 ~TraitManager()=default