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
This commit is contained in:
thach ha committed 2017-02-24 23:06:18 +07:00
1 parent 52d8654525
commit 9c1fb31bc1
1 file changed
+1
@@ -440,6 +440,7 @@ err_t BLECharacteristic::notify(const uint8_t* data, int len, uint16_t offset)
else
{
write(data, len);
return NRF_ERROR_INVALID_STATE;
}
return ERROR_NONE;