Add conn_handle to NimBLECharacteristic::notify to send notification/indication to a specific client (#97)

Adds the ability to send notifications/indications to specific clients individually.
This commit is contained in:
gluhovsky
2022-09-11 20:18:55 -06:00
committed by GitHub
parent 6fb26e3809
commit e868f37135
2 changed files with 16 additions and 8 deletions
+3 -3
View File
@@ -84,9 +84,9 @@ public:
void indicate();
void indicate(const uint8_t* value, size_t length);
void indicate(const std::vector<uint8_t>& value);
void notify(bool is_notification = true);
void notify(const uint8_t* value, size_t length, bool is_notification = true);
void notify(const std::vector<uint8_t>& value, bool is_notification = true);
void notify(bool is_notification = true, uint16_t conn_handle = BLE_HCI_LE_CONN_HANDLE_MAX + 1);
void notify(const uint8_t* value, size_t length, bool is_notification = true, uint16_t conn_handle = BLE_HCI_LE_CONN_HANDLE_MAX + 1);
void notify(const std::vector<uint8_t>& value, bool is_notification = true, uint16_t conn_handle = BLE_HCI_LE_CONN_HANDLE_MAX + 1);
size_t getSubscribedCount();
void addDescriptor(NimBLEDescriptor *pDescriptor);
NimBLEDescriptor* getDescriptorByUUID(const char* uuid);