Commit graph

33 commits

Author SHA1 Message Date
Rohit Grover
d1bd1a612c add support for passkey display. 2015-05-08 13:54:06 +01:00
Rohit Grover
2d801b4f46 fix a couple of typos. 2015-05-08 13:49:13 +01:00
Rohit Grover
968ac2aa6f some more renaming around securitySetup 2015-05-08 12:13:25 +01:00
Rohit Grover
689848a5dd minor renames around securitySetup 2015-05-08 11:55:56 +01:00
Rohit Grover
9cdae9625b add LinkSecuredCallback_t 2015-05-08 11:39:19 +01:00
Rohit Grover
6580e463c0 remove constants from the enumeration of SecurityMode_t 2015-05-08 11:38:37 +01:00
Rohit Grover
8eba398fd8 move SecurityMode_t within Gap 2015-05-08 11:12:23 +01:00
Rohit Grover
624b7a6c3a handle securityProcedureCompleted 2015-05-08 11:00:17 +01:00
Rohit Grover
d07eac2383 add SecurityProcedureInitiatedCallback_t 2015-05-08 10:29:58 +01:00
Rohit Grover
98814d23ae update initializeSecurity() to take in args. 2015-05-07 13:18:38 +01:00
Rohit Grover
985edbdf48 add APIs for getLinkSecurity() and purgeAllBondingState() 2015-05-07 08:17:31 +01:00
Rohit Grover
7559176d50 support getLinkStatus() 2015-05-07 08:17:31 +01:00
Rohit Grover
0e8731df97 Add APIs to setup callbacks for events related to security/bonding. 2015-05-07 08:17:31 +01:00
Rohit Grover
bd493c8aae add comment to explain the format of Gap::address_t 2015-04-27 07:35:56 +01:00
Rohit Grover
35e1e8b8c4 Release 0.3.3
=============

Enhancements
~~~~~~~~~~~~

* Changes needed to support v8 of the Nordic SDK.

Bugfixes
~~~~~~~~

none.
2015-04-20 11:22:04 +01:00
Rohit Grover
8b631fc0c2 Release 0.3.2
=============

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.
2015-04-15 08:04:31 +01:00
Rohit Grover
89b445600b switch access privileges for several of the callback related members to 'protected'
it should be possible for a stack-specific implementation to override the defaults.
2015-04-09 13:52:42 +01:00
Rohit Grover
c7a2b9bb93 Release 0.3.0
==============

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.
2015-03-23 16:10:34 +00:00
Shirish Baskaran
83edad0129 Remove minor warnings seen with GCC ARM toolchain
[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]
2014-12-28 03:45:47 -05:00
Rohit Grover
bec9560c70 fix all line endings to be Unix style 2014-12-16 08:18:48 +00:00
Rohit Grover
709abe6a97 add BLEDevice::addToDisconnectionCallChain() 2014-12-11 11:39:26 +00:00
Rohit Grover
e8e3a7aa2b add Gap::MSEC_TO_ADVERTISEMENT_DURATION_UNITS() 2014-11-28 13:56:11 +00:00
Rohit Grover
d0dbe29f35 minor white space diffs 2014-11-21 08:06:22 +00:00
Rohit Grover
4234515948 Minor re-organization of member functions and their access privileges.
Make most APIs private, and accessible only to BLEDevice.
Add a private copy constructor and assignment operator.
2014-11-21 08:00:15 +00:00
Rohit Grover
a795389b7d remove un-necessary header files from Gap.h 2014-11-21 07:53:32 +00:00
Rohit Grover
d9fecf9209 add helper funcs: MSEC_TO_GAP_DURATION_UNITS 2014-11-19 10:08:14 +00:00
Rohit Grover
8d15b5e908 uncrustify Gap.h 2014-11-19 08:57:13 +00:00
Rohit Grover
23f9ef8058 enhance connectionEventCallback() to take in peer addr information 2014-11-18 15:10:26 +00:00
Rohit Grover
44f26b4024 adding typedef for address_t 2014-11-18 15:08:45 +00:00
Rohit Grover
039fd060ad Release 0.2.3
=============

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.
2014-11-05 14:08:42 +00:00
Rohit Grover
b134b516d5 Release 0.1.1: Minor bugfix release.
Bugfixes
~~~~~~~~

- Handle all valid disconnection reasons.
2014-09-08 17:11:58 +01:00
Rohit Grover
c8eccb0222 Release 0.1.0
=============

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.
2014-09-02 15:09:46 +01:00
Rohit Grover
9c8f69c78c initial re-organization of BLE_API directory structure 2014-07-23 15:09:23 +01:00
Renamed from hw/Gap.h (Browse further)