make gatt support both client & server
This commit is contained in:
1 parent
a3cd4104b2
commit
852e100007
8 files changed
+83
-81
No files matched your search
@@ -106,7 +106,7 @@ void BLECentralCharacteristic::begin(void)
|
||||
_service = BLECentralService::lastService;
|
||||
|
||||
// Register to Bluefruit (required for callback and write response)
|
||||
(void) Bluefruit.Central._registerCharacteristic(this);
|
||||
(void) Bluefruit.Gatt._addCharacteristic(this);
|
||||
}
|
||||
|
||||
/*------------------------------------------------------------------*/
|
||||
|
||||
Reference in new issue
Block a user