change tone chars to write only
This commit is contained in:
1 parent
64f94ca22f
commit
74f58f5e2c
1 file changed
+2
-2
@@ -54,8 +54,8 @@ err_t BLEAdafruitTone::begin(int pin)
|
||||
VERIFY_STATUS( BLEService::begin() );
|
||||
|
||||
// Setup Characteristic
|
||||
_tone.setProperties(CHR_PROPS_READ | CHR_PROPS_WRITE);
|
||||
_tone.setPermission(SECMODE_OPEN, SECMODE_OPEN);
|
||||
_tone.setProperties(CHR_PROPS_WRITE);
|
||||
_tone.setPermission(SECMODE_NO_ACCESS, SECMODE_OPEN);
|
||||
_tone.setFixedLen(6); // uint16_t freq, uint32_t duration
|
||||
_tone.setWriteCallback(tone_write_cb, true);
|
||||
VERIFY_STATUS( _tone.begin() );
|
||||
|
||||
Reference in new issue
Block a user