=============
Enhancements
~~~~~~~~~~~~
* Add new API: onRadioNotification(). Radio Notification is a feature that
enables ACTIVE and INACTIVE (nACTIVE) signals from the stack that notify the
application when the radio is in use. The ACTIVE signal is sent before the
Radio Event starts. The nACTIVE signal is sent at the end of the Radio
Event. These signals can be used by the application programmer to
synchronize application logic with radio activity. For example, the ACTIVE
signal can be used to shut off external devices to manage peak current drawn
during periods when the radio is on, or to trigger sensor data collection
for transmission in the Radio Event.
* merge contents of several .cpp files under common/* into .h files under public/*.
e.g. GattService, GapAdvertisingData, UUID.
* Add a note to the documentation for setAdvertisingInterval() to warn users
about the new units for 'interval'.
* get rid of a few deprecated APIs: setAdvertisingData() and startAdvertising().
Bugfixes
~~~~~~~~
none.
==============
Enhancements
~~~~~~~~~~~~
* BLEDevice::setAdvertisingInterval() uses milliseconds as the unit for its
argument. If advertising interval is set to 0, advertising is stopped. If
advertising interval is smaller than the minimum value supported, then the
minimum value is used instead.
* Add an enumeration called GattCharacteristicAuthCBReply_t to capture a
status code from read/write authorization callback. Previously it used to
return only a bool.
* Add APIs for getMinAdvertisingInterval() and variants.
Bugfixes
~~~~~~~~
* URIBeaconConfigService uses better write-authorization filters. It now
passes tests defined in Google's validator app.
[Warning] Gap.h@152: 152:16: warning: enumeration value
‘GAP_EVENT_CONNECTED’ not handled in switch [-Wswitch] enumeration value
‘GAP_EVENT_DISCONNECTED’ not handled in switch [-Wswitch]
[Warning] GattServer.h@78: In member function ‘void
GattServer::handleEvent(GattServerEvents::gattEvent_e, uint16_t)’:
enumeration value ‘GATT_EVENT_DATA_SENT’ not handled in switch
[-Wswitch]
[Warning] GattServer.h@78: In member function ‘void
GattServer::handleEvent(GattServerEvents::gattEvent_e, uint16_t)’:
enumeration value ‘GATT_EVENT_DATA_WRITTEN’ not handled in switch
[-Wswitch]
[Warning] GattServer.h@78: In member function ‘void
GattServer::handleEvent(GattServerEvents::gattEvent_e, uint16_t)’:
enumeration value ‘GATT_EVENT_READ_AUTHORIZATION_REQ’ not handled in
switch [-Wswitch]
[Warning] GattServer.h@78: In member function ‘void
GattServer::handleEvent(GattServerEvents::gattEvent_e, uint16_t)’:
enumeration value ‘GATT_EVENT_WRITE_AUTHORIZATION_REQ’ not handled in
switch [-Wswitch]
=============
Features
~~~~~~~~
* add API for getAddress() to fetch the MAC address.
Bugfixes
~~~~~~~~
* DFUService object needs to remain alive after ble.init(); declaring as static.
Compatibility
~~~~~~~~~~~~~
One new API has been added between 0.2.0 and this release. Applications should be updated.
=============
Mostly API changes.
Features
~~~~~~~~
- onConnection() callback now receives connection-parameters applicable to the
new connection.
- onDataSent() callback now receives a count parameter containing the number of
times notifications were sent out since the last callback.
- A 'reason' parameter has been added to Gap::disconnect() to indicate the
reason for disconnection; and also to the onDisconnection callback to
receive a reason from the remote host.
Bugfixes
~~~~~~~~
- onDataWritten() callback now receives an additional parameter
(GattServer::WriteEventCallback_t) encapsulating the update. This avoids
having to re-fetch the updated characteristic's value attribute. It also
fixes a bug where multiple updates to the characteristic's value-attribute
could get clobbered if they occurred in quick succession before the
callbacks could be processed.