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:
Joe Finney 2015-09-15 14:13:10 +01:00
parent 2409ae95c0
commit c9ee82cb46
1 changed files with 21 additions and 0 deletions

View File

@ -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.
*