Don't send notifications to un-paired peers when READ_ENC set (#14)

* start security when peer subscribes to secured characteristic

* Don't send notifications to non-secure clients
This commit is contained in:
h2zero authored and GitHub committed 2020-06-21 20:26:16 -06:00
1 parent afb2f8d4c7
commit 0712f606f1
3 files changed
+28 -6

No files matched your search

+1 -1
View File
@@ -107,7 +107,7 @@ private:
~NimBLECharacteristic();
NimBLEService* getService();
uint8_t getProperties();
uint16_t getProperties();
void setSubscribe(struct ble_gap_event *event);
static int handleGapEvent(uint16_t conn_handle, uint16_t attr_handle,
struct ble_gatt_access_ctxt *ctxt, void *arg);