nl::Weave::DeviceLayer::TraitManager

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

管理 Weave 裝置中 Weave 資料管理特徵的發布與訂閱情形。

摘要

公開類型

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