Commit graph

234 commits

Author SHA1 Message Date
Rohit Grover 0c36eed3be merge GattCharacteristic.cpp into the .hpp file 2014-06-11 08:32:18 +01:00
Rohit Grover 79da06fc34 remove duplication in the constructor for GattCharacteristic 2014-06-11 08:28:14 +01:00
Rohit Grover ff353f7e02 reverting to BLEDevice (from BLEPeripheral) 2014-06-10 13:14:16 +01:00
Rohit Grover ff67cda3b8 rename BLEDevice to BLEPeripheral 2014-06-10 09:34:17 +01:00
Rohit Grover b9bb38f054 updating comment header for waitForEvent() 2014-06-10 09:26:32 +01:00
Rohit Grover efa48841c5 add waitForEvent() to BLE_API 2014-06-10 08:55:33 +01:00
Rohit Grover df364c1833 slowly switching to astyle code formatting as recommended by the team 2014-06-09 08:34:47 +01:00
Rohit Grover 72b9fd2c77 slowly switching to astyle code formatting as recommended by the team 2014-06-09 08:29:22 +01:00
Rohit Grover 820e159489 white space changes to move away from 80-column rule 2014-06-06 14:14:46 +01:00
Rohit Grover d67d20c55e add updateCharacteristicValue() 2014-06-06 11:30:56 +01:00
Rohit Grover 435e999162 add support for accessing GAP's state 2014-06-06 11:17:37 +01:00
Rohit Grover d9b07e95ef add BLEDevice::addService() 2014-06-06 11:08:32 +01:00
Rohit Grover 5a7e159b7b white space diffs; bringing comments on the same line as declarations 2014-06-05 15:24:22 +01:00
Rohit Grover e013eff2f0 make GattService members private; add accessors 2014-06-05 11:38:21 +01:00
Rohit Grover 0307439450 simplified GattService constructor to take a UUID directly
This removes the duplicate constructors taking differing forms of UUID.
2014-06-05 10:36:50 +01:00
Rohit Grover 34dc30209f white space diffs 2014-06-05 08:52:20 +01:00
Rohit Grover e98f1e8b49 switch to using LongUUID_t and ShortUUID_t 2014-06-05 08:48:51 +01:00
Rohit Grover d5e2df438b replace 16 with UUID::LENGTH_OF_LONG_UUID 2014-06-05 08:22:59 +01:00
Rohit Grover 978bddfd7c white space diffs 2014-06-04 10:48:27 +01:00
Rohit Grover ecac50aea0 adding BLEDevice APIs for GATTServer callbacks 2014-06-04 10:06:19 +01:00
Rohit Grover 0c91cc32bf add Gap Callbacks 2014-06-04 09:36:31 +01:00
Rohit Grover e01f6f5daf long UUIDs tested; work fine. there was a minor need for byte-swapping 2014-06-02 14:58:56 +01:00
Rohit Grover 9c2849d88e rename "value" member of UUID as shortUUID 2014-05-30 10:48:48 +01:00
Rohit Grover abed1b0557 UUID constructors should zero out relative part of baseUUID 2014-05-30 09:58:35 +01:00
Rohit Grover 6e1746fdba GapAdvertisingData::addData() should use > for bounds checking of payload 2014-05-29 16:21:46 +01:00
Rohit Grover 28c1ca8830 use initializer list for constructor of GapAdvertisingData 2014-05-29 14:57:15 +01:00
Rohit Grover c1044da0ec make members of GattCharacteristic private 2014-05-29 09:50:47 +01:00
Rohit Grover a7e64ea461 make members of UUID private; add accessors() 2014-05-29 08:57:57 +01:00
Rohit Grover 95af932316 remove comment about TODO for 128bit characteristic uuids 2014-05-29 08:28:02 +01:00
Rohit Grover 97e78fc44a constructor for GattService should take a constant 2014-05-29 08:17:36 +01:00
Rohit Grover 76ac2a5291 remove need for UUID::update() 2014-05-29 08:16:31 +01:00
Rohit Grover e1ae67ab8c GattCharacteristic now uses UUID instead of uint16_t 2014-05-28 17:24:30 +01:00
Rohit Grover 73e104a011 use initializer list in the constructor for GattCharacteristic 2014-05-28 16:52:09 +01:00
Rohit Grover efee45e600 define LENGTH_OF_LONG_UUID as a constant 2014-05-28 15:25:55 +01:00
Rohit Grover f7e4300039 simplify the api for accumulating advertising payload 2014-05-23 17:45:16 +01:00
Rohit Grover b347ecd31f mark BLEDevice::setAdvertisingData() as deprecated 2014-05-23 17:28:44 +01:00
Rohit Grover 05a4e99f5d adding const to the "data" member of GapAdvertisingData::addData() 2014-05-23 17:05:53 +01:00
Rohit Grover ac72488c70 simplification of the API used to setup GAP advertising 2014-05-23 15:21:47 +01:00
Rohit Grover 6b06ea38c1 minor improvement to the API 2014-05-23 15:21:16 +01:00
Rohit Grover bed1843e86 fix a documentation error regarding advertising interval 2014-05-23 14:52:12 +01:00
Rohit Grover 440699c764 white space cleanup 2014-05-23 13:12:52 +01:00
Rohit Grover c1a43c52ad add const to parameter accepted by startAdvertising() 2014-05-23 11:08:43 +01:00
Rohit Grover 4480ea28e7 Use composition to hide the transport functionality behind an interface object.
The underlying target BLE library must implement the function which creates this object.
2014-05-23 08:56:31 +01:00
Rohit Grover c4e1f43b1a adding use of consts for GAP related apis 2014-05-22 15:02:40 +01:00
Rohit Grover abfb51ae4b white space diffs 2014-05-22 14:51:06 +01:00
Rohit Grover 3541e6ff6f add consts to the declaration of BLEDevice::setAddress() 2014-05-22 13:30:05 +01:00
Rohit Grover 789bd6f6c0 add a trivial comment header block for setAddress 2014-05-22 13:25:24 +01:00
Rohit Grover 417f2f58c2 move the inline definitions for GAP API out of the BLEDevice class 2014-05-22 13:25:02 +01:00
Rohit Grover 8380959a31 enhancing the interface for BLEDevice to absorb GAP API.
This will allow applications to avoid having to call getGAP() or
similar before operating on underlying services.
2014-05-22 12:11:12 +01:00
Rohit Grover a9cf898a4b white space diffs; generated using uncrustify 2014-05-21 15:01:14 +01:00