This commit is contained in:
Ben Meadors
2022-08-17 12:00:53 -05:00
parent 0c08d7c3dc
commit 01a1f40ad2
3 changed files with 10 additions and 20 deletions

View File

@@ -168,9 +168,6 @@ void setupMeshService(void)
// any characteristic(s) within that service definition.. Calling .begin() on
// a BLECharacteristic will cause it to be added to the last BLEService that
// was 'begin()'ed!
fromNum.setProperties(CHR_PROPS_NOTIFY | CHR_PROPS_READ);
fromNum.setPermission(SECMODE_OPEN, SECMODE_NO_ACCESS); // FIXME, secure this!!!
fromNum.setFixedLen(0); // Variable len (either 0 or 4) FIXME consider changing protocol so it is fixed 4 byte len, where 0 means empty
fromNum.setMaxLen(4);
fromNum.setCccdWriteCallback(cccd_callback); // Optionally capture CCCD updates
@@ -199,6 +196,11 @@ void setupMeshService(void)
toRadio.begin();
}
void setPairingMode() {
}
// FIXME, turn off soft device access for debugging
static bool isSoftDeviceAllowed = true;