nl::Weave::DeviceLayer::Internal::GenericConnectivityManagerImpl_NoBLE

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

ให้บริการฟีเจอร์ ConnectivityManager เฉพาะสำหรับ BLE สำหรับแพลตฟอร์มที่ไม่รองรับ BLE

สรุป

คลาสนี้มีจุดประสงค์ให้คลาส ConnectivityManagerImpl รับค่า (โดยตรงหรือโดยอ้อม) ซึ่งจะปรากฏเป็นพารามิเตอร์ ImplClass ของเทมเพลตด้วย

สมาชิกของคลาสนี้คือเมธอดแบบอินไลน์ทั้งหมดที่ไม่ทำอะไรเลย และจะแสดงค่าผลลัพธ์แบบคงที่ ซึ่งจะช่วยให้คอมไพเลอร์เพิ่มประสิทธิภาพโค้ดที่ไม่ทำงานโดยไม่ต้องใช้ #ifdef เช่น

"`` if (ConnectivityMgr().GetWoBLEServiceMode() != ConnectivityManager::kWoBLEServiceMode_NotSupported) { // ... ดำเนินการบางอย่างในอุปกรณ์ที่รองรับ WoBLE ... } ```

ฟังก์ชันสาธารณะ

_GetBLEDeviceName(char *buf, size_t bufSize)
_GetWoBLEServiceMode(void)
ConnectivityManager::WoBLEServiceMode
_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 *

ฟังก์ชันสาธารณะ

_ชื่ออุปกรณ์ของ GetBLE

WEAVE_ERROR _GetBLEDeviceName(
  char *buf,
  size_t bufSize
)

_GetWoBLEServiceMode

ConnectivityManager::WoBLEServiceMode _GetWoBLEServiceMode(
  void
)

_IsBLEAdvertisingEnabled

bool _IsBLEAdvertisingEnabled(
  void
)

_IsBLEFastAdvertisingEnabled

bool _IsBLEFastAdvertisingEnabled(
  void
)

การเชื่อมต่อ _NumBLE

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
)