BLE Chars enhance
- default max_len to 20 bytes only (previously 512) - rename setStringDescriptor to setUserDescriptor
This commit is contained in:
1 parent
0bcc78c296
commit
a0055a611e
4 files changed
+14
-13
No files matched your search
@@ -184,7 +184,8 @@ err_t BLEUart::begin(void)
|
||||
_txd.setProperties(CHR_PROPS_NOTIFY);
|
||||
// TODO enable encryption when bonding is enabled
|
||||
_txd.setPermission(SECMODE_OPEN, SECMODE_NO_ACCESS);
|
||||
_txd.setStringDescriptor("TXD");
|
||||
// _txd.setMaxLen()
|
||||
_txd.setUserDescriptor("TXD");
|
||||
VERIFY_STATUS( _txd.begin() );
|
||||
|
||||
// Add RXD Characteristic
|
||||
@@ -193,8 +194,8 @@ err_t BLEUart::begin(void)
|
||||
|
||||
// TODO enable encryption when bonding is enabled
|
||||
_rxd.setPermission(SECMODE_NO_ACCESS, SECMODE_OPEN);
|
||||
|
||||
_rxd.setStringDescriptor("RXD");
|
||||
// _rxd.setMaxLen()
|
||||
_rxd.setUserDescriptor("RXD");
|
||||
VERIFY_STATUS(_rxd.begin());
|
||||
|
||||
return ERROR_NONE;
|
||||
|
||||
Reference in new issue
Block a user