Commit graph

63 commits

Author SHA1 Message Date
Rohit Grover
6da31dcedd consolidated the connect APIs into a single API. Takes pointers instead of references. 2015-06-05 08:04:18 +01:00
Rohit Grover
6a88d2af37 use Gap::ConnectionParams_t in connect() 2015-06-05 08:04:18 +01:00
Rohit Grover
25bef2bd6e add ScanParams to connect() 2015-06-05 08:04:18 +01:00
Rohit Grover
b899ac13e9 introduce API for BLEDevice::connect(peerAddr, peerAddrType) 2015-06-05 08:04:18 +01:00
Rohit Grover
56d3b330e1 white space diffs. 2015-06-05 08:04:18 +01:00
Rohit Grover
5f5a312d40 use forward declarations in Gap.h 2015-06-05 08:04:18 +01:00
Rohit Grover
f89fcb3ec2 remove extraneous declaration of AdvertisementReportCallback_t 2015-06-05 08:04:18 +01:00
Rohit Grover
c607797150 update declaration for AdvertisementReportCallback_t 2015-06-05 08:04:18 +01:00
Rohit Grover
6a5663babb add AdvertisementType_t 2015-06-05 08:04:18 +01:00
Rohit Grover
8d3e092916 add a missing include for GapScanningParams.h 2015-06-05 08:04:18 +01:00
Rohit Grover
6a7c543d86 simplify declaration of GapState_t 2015-05-21 11:24:15 +01:00
Rohit Grover
37fce3e7b7 repalced uses of Gap::addr_type_t with Gap::AddressType_t 2015-05-19 13:28:10 +01:00
Rohit Grover
bee91cabe5 enable <object,callbackMember> context for startScan. 2015-05-18 09:10:22 +01:00
Rohit Grover
aebfbce3f5 redefine AdvertisementReportCallback_t in terms of AdvertisementCallbackParams_t.
This allows us to make use of FunctionPointerWithContext.
2015-05-18 07:41:24 +01:00
Rohit Grover
9263436522 replace instances of Gap::address_t with Gap::Address_t 2015-05-18 07:39:31 +01:00
Rohit Grover
ca9f8a9c12 add some comments to highlight deprecated type aliases. 2015-05-12 09:16:38 +01:00
Rohit Grover
0a59dd0c84 remove extraneous declaration of AdvertisementType_t 2015-05-12 09:16:38 +01:00
Rohit Grover
deac909a33 rename Gap::GAP_DURATION_UNITS_TO_MS to Gap::ADVERTISEMENT_DURATION_UNITS_TO_MS 2015-05-12 09:16:38 +01:00
Rohit Grover
ca3ed00d36 fix value of UNIT_0_625_MS 2015-05-12 09:16:38 +01:00
Rohit Grover
002ebbe3a8 replace inclusion of GapScanningParams with a forward declaration. 2015-05-12 09:16:38 +01:00
Rohit Grover
abf3316803 shorten *scanning* to *scan* in APIs 2015-05-12 09:16:38 +01:00
Rohit Grover
a655f86025 add AdvertisementType_t 2015-05-12 09:16:38 +01:00
Rohit Grover
c7717aa41d add API for stopScanning() 2015-05-12 09:16:38 +01:00
Rohit Grover
c2e9d87163 add API for startScanning() 2015-05-12 09:16:38 +01:00
Rohit Grover
b8b185160b add Gap::onAdvertisementReport and processAdvertisementReport() 2015-05-12 09:16:38 +01:00
Rohit Grover
aabb9c1837 update declaration for AdvertisementReportCallback_t 2015-05-12 09:16:38 +01:00
Rohit Grover
06529208f5 add AdvertisementType_t 2015-05-12 09:16:38 +01:00
Rohit Grover
6a9409fde9 white space diff. 2015-05-12 09:16:38 +01:00
Rohit Grover
ef97790264 simplifying declarations for some enumerations within Gap. 2015-05-11 14:45:31 +01:00
Rohit Grover
94f50a0316 minor simplification of some comments. 2015-05-11 07:54:30 +01:00
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