back to battling jtag

This commit is contained in:
geeksville committed 2020-02-03 17:13:41 -08:00
1 parent 97598c9178
commit d4284ba95d
4 files changed
+20 -35

No files matched your search

+1
View File
@@ -61,6 +61,7 @@ class MyServerCallbacks : public BLEServerCallbacks {
// Help routine to add a description to any BLECharacteristic and add it to the service
void addWithDesc(BLEService *service, BLECharacteristic *c, const char *description) {
BLEDescriptor *desc = new BLEDescriptor(BLEUUID((uint16_t) ESP_GATT_UUID_CHAR_DESCRIPTION), strlen(description) + 1);
assert(desc);
desc->setValue(description);
c->addDescriptor(desc);
service->addCharacteristic(c);