Skip to content

Commit 9c1fb31

Browse files
author
thach ha
committed
notify return
- NRF_ERROR_INVALID_PARAM if characteristic properties is not notify - NRF_ERROR_INVALID_STATE if it is not connected and/or cccd is not enabled for notification - ERROR_NONE if could sending out notification message
1 parent 52d8654 commit 9c1fb31

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libraries/Bluefruit52Lib/src/BLECharacteristic.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,7 @@ err_t BLECharacteristic::notify(const uint8_t* data, int len, uint16_t offset)
440440
else
441441
{
442442
write(data, len);
443+
return NRF_ERROR_INVALID_STATE;
443444
}
444445

445446
return ERROR_NONE;

0 commit comments

Comments
 (0)