nl::Weave::DeviceLayer::Internal::GenericConnectivityManagerImpl_BLE

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

针对通过 BLEManager 类实现 BLE 功能的平台,提供 BLE 专属 ConnectivityManager 功能的通用实现。

摘要

此类旨在被 ConnectivityManagerImpl 类(直接或间接)继承,此类也显示为模板的 ImplClass 参数。

此类中的大多数方法只是将调用转发到 BLEManager 类中名称相似的方法。这种安排(ConnectivityManager 实现将 BLE 支持委托给 BLEManager 类)是支持 BLE 的平台上的标准安排,并且有助于限制 ConnectivityManagerImpl 类的复杂性。

公共函数

_GetBLEDeviceName(char *buf, size_t bufSize)
_GetWoBLEServiceMode(void)
ConnectivityManager::WoBLEServiceMode
_IsBLEAdvertising(void)
bool
_IsBLEAdvertisingEnabled(void)
bool
_IsBLEFastAdvertisingEnabled(void)
bool
_NumBLEConnections(void)
uint16_t
_SetBLEAdvertisingEnabled(bool val)
_SetBLEDeviceName(const char *deviceName)
_SetBLEFastAdvertisingEnabled(bool val)
_SetWoBLEServiceMode(ConnectivityManager::WoBLEServiceMode val)

公共静态函数

_WoBLEServiceModeToStr(ConnectivityManager::WoBLEServiceMode mode)
const char *

公共函数

_GetBLEDeviceName

WEAVE_ERROR _GetBLEDeviceName(
  char *buf,
  size_t bufSize
)

_GetWoBLEServiceMode

ConnectivityManager::WoBLEServiceMode _GetWoBLEServiceMode(
  void
)

_IsBLEAdvertising

bool _IsBLEAdvertising(
  void
)

_IsBLEAdvertisingEnabled

bool _IsBLEAdvertisingEnabled(
  void
)

_IsBLEFastAdvertisingEnabled

bool _IsBLEFastAdvertisingEnabled(
  void
)

_NumBLEConnections

uint16_t _NumBLEConnections(
  void
)

_SetBLEAdvertisingEnabled

WEAVE_ERROR _SetBLEAdvertisingEnabled(
  bool val
)

_SetBLEDeviceName

WEAVE_ERROR _SetBLEDeviceName(
  const char *deviceName
)

_SetBLEFastAdvertisingEnabled

WEAVE_ERROR _SetBLEFastAdvertisingEnabled(
  bool val
)

_SetWoBLEServiceMode

WEAVE_ERROR _SetWoBLEServiceMode(
  ConnectivityManager::WoBLEServiceMode val
)

公共静态函数

_WoBLEServiceModeToStr

const char * _WoBLEServiceModeToStr(
  ConnectivityManager::WoBLEServiceMode mode
)