microbit: Added support for explicit notify operation of underlying GATTServers.
Added to complement the semantics of the write() operation that allows users to selectively ignroe NOTIFY requests.
This commit is contained in:
parent
2409ae95c0
commit
c9ee82cb46
|
@ -175,6 +175,27 @@ public:
|
|||
return BLE_ERROR_NOT_IMPLEMENTED; /* Requesting action from porter(s): override this API if this capability is supported. */
|
||||
}
|
||||
|
||||
/**
|
||||
* Perform an explicit BLE notification of a given attribute.
|
||||
*
|
||||
* @param[in] attributeHandle
|
||||
* Handle for the value attribute of the Characteristic.
|
||||
* @param[in] value
|
||||
* A pointer to a buffer holding the new value
|
||||
* @param[in] size
|
||||
* Size of the new value (in bytes).
|
||||
*
|
||||
* @return BLE_ERROR_NONE if we have successfully set the value of the attribute.
|
||||
*/
|
||||
virtual ble_error_t notify(GattAttribute::Handle_t attributeHandle, const uint8_t *value, uint16_t size)
|
||||
{
|
||||
(void)attributeHandle;
|
||||
(void)value;
|
||||
(void)size;
|
||||
|
||||
return BLE_ERROR_NOT_IMPLEMENTED; /* Requesting action from porter(s): override this API if this capability is supported. */
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine the updates-enabled status (notification/indication) for the current connection from a characteristic's CCCD.
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue