make gatt support both client & server

This commit is contained in:
hathach committed 2017-03-30 19:55:57 +07:00
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);
}
/*------------------------------------------------------------------*/