Commit graph

94 commits

Author SHA1 Message Date
Rohit Grover
c6130f4877 fix missing return from BLE::init() 2015-11-03 13:18:33 +00:00
Rohit Grover
43e7e93db9 add a comment header for initImplementation 2015-11-03 12:31:49 +00:00
Rohit Grover
8fab6bf863 remove extra qualification 'BLE::' on member 'initImplementation' 2015-11-03 12:29:08 +00:00
Rohit Grover
1f30b48a15 fix the build error resulting from missing template instantiation in the case <object,member> tuple was used for BLE::init() 2015-11-03 11:56:46 +00:00
Rohit Grover
aa7e4b2da7 BLE::init() should also be able to take a <object,member> tuple. 2015-11-03 10:55:31 +00:00
Rohit Grover
3cd2c31e10 white space diffs. 2015-11-03 10:55:31 +00:00
Andres Amaya Garcia
4fe124f203 Use correct not-implemented value for Voltage/Temp 2015-11-02 16:36:18 +00:00
Andres Amaya Garcia
058243f372 Fixed period settings for adv packets
Fixed the period settings for beacon advertisement packets. Changes through
the config service now take effect and defaults can be set through code.
2015-11-02 11:54:29 +00:00
Rohit Grover
be09e51698 use types like ReadOnlyGattCharacteristic<TemperatureType_t> 2015-10-30 09:42:56 +00:00
Rohit Grover
bdc1ca08cd introduce types for temperature/humidity/pressure. 2015-10-30 09:41:28 +00:00
Rohit Grover
45e80c8ba8 white space diffs; mostly alignment 2015-10-30 09:23:40 +00:00
Rohit Grover
e1bce4e5a3 Merge branch 'master' of https://github.com/xcrespo/ble into xcrespo-master 2015-10-30 09:19:31 +00:00
Rohit Grover
99ba55badc Merge pull request #81 from pan-/functionPointerOptimisation
Reduce the memory consumed by FunctionPointerWithContext instances
2015-10-30 08:47:02 +00:00
Rohit Grover
ec545b79dc cosmetic changes. 2015-10-30 08:34:17 +00:00
Rohit Grover
e46cef5dd1 Merge pull request #91 from rgrover/develop
BLE::init() now takes in a callback paramter
2015-10-30 08:33:43 +00:00
Andres Amaya Garcia
976bcd4e61 Introduced fixes to Eddystone implementation
Fixed wrong memcpy arguments that caused the wrong number of bytes to be copied
and merged energy saving changes.
2015-10-29 11:25:27 +00:00
Rohit Grover
5c7f26e06f fix #90: add a ble_error_t paramter to initializationCompletionCallback 2015-10-28 12:55:24 +00:00
Rohit Grover
918af4fbac Major change:
- There's a new type: BLE::InitializationCompleteCallback_t
- init() now takes a completion callback. This is an optional parameter, if no callback is setup the application can still determine the status of initialization using BLE::hasInitialized() (see below).
- There's a new API: BLEInstanceBase::hasInitialized() which transports need to implement.
- BLEInstanceBase.h is no longer included from BLE.h. We use a forward declaration of BLEInstanceBase instead. This is required us to move implementations of BLE methods out of the header and into BLE.cpp.
- There's a new API:  BLE::getInstanceID(), which simply returns the ID of an instance.
- There are new error types around initialization.
2015-10-28 11:39:15 +00:00
Rohit Grover
bde2e465c8 fix #86: update includes from within services to use paths starting from subfolder 'ble' 2015-10-27 17:31:50 +00:00
Vincent Coubard
129683bdc0 Code and command cleanup:
- add a space after if keyword
	- Use typedef types instead of direct declarations for
	  pFunctionPointerWithContext_t and pvoidfcontext_t
	- Fix typos and enhance comment about how alignement and size
	  requirements of the member function pointer are computed.
2015-10-26 10:44:21 +00:00
Vincent Coubard
8bad0486cd Remove unneeded blank lines. 2015-10-23 19:03:33 +01:00
Vincent Coubard
57c160c25c Reduce the memory size consummed by a FunctionPointerWithContext to 20
bytes (oryginally, it was 32 bytes !).
Enforce alignement constraints of the embedded pointer to member function.
Symplify and unify call mecanic, everything is delegated uniformally to the actual
implementation.
2015-10-23 15:59:53 +01:00
Rohit Grover
a0335c2e8d add a missing include file 2015-10-23 14:34:25 +01:00
Rohit Grover
17f2e99d2b fix minor compiler warning due to a shadowed member variable. 2015-10-23 14:34:25 +01:00
Rohit Grover
84f434a994 Fix compiler warnings due to header includes.
Some header include paths have diverged between mbed OS and mbed-classic.
2015-10-23 14:34:25 +01:00
Andres Amaya Garcia
f8e3d2f44c Introduced fixes after review
Introduced fixes after review of previous commit with regards to JIRA defect
IOTSFW-1058.
2015-10-22 11:05:00 +01:00
Andres Amaya Garcia
18dcc91382 Introduced fix for defect IOTSFW-1058
Introduced a fix for defect IOTSFW-1058 that caused the
BLE_EddystoneBeaconConfigService example in ARMmbed/ble-examples repo to fail.
Refer to JIRA defect for more details.
2015-10-21 15:02:37 +01:00
xcrespo
13a9c192d7 New call to onDisconnection callback in LinkLossService 2015-10-05 10:38:08 +02:00
xcrespo
da2b104e16 Added license header for EnvironmentalService 2015-10-05 10:38:08 +02:00
Xabi Crespo
f0f42d110b Support for Environmental Service (temperature, pressure and humidity characteristics) 2015-10-05 10:38:08 +02:00
Rohit Grover
d43b1d1a8b update LinkLoss service due to recent changes in APIs 2015-09-29 12:58:14 +01:00
Rohit Grover
5aa7895578 mostly white-sapce improvements 2015-09-29 08:41:18 +01:00
Austin Blackstone
d389c42692 patch to ensure corred UUID being broadcast during Config. 2015-09-28 13:56:41 -05:00
Austin Blackstone
1811f21091 updated eddystone service and added config service. 2015-09-25 16:17:14 -05:00
Marcus Chang
dd032631d7 Changed onConnection and onDisconnection to accept object/methods and merged them with the addTo-callchain. All calls to onConnection and onDisconnection will now be added to a call chain. 2015-09-17 11:38:14 +01:00
Rohit Grover
63f54814bd Merge pull request #71 from rgrover/develop
adding an initial prototype for a yotta-config based initialization f…
2015-09-08 10:19:52 +01:00
Rohit Grover
cc3db8500c minor improvement to comment header for GattServer::onDataRead() 2015-09-08 10:11:39 +01:00
Rohit Grover
ce4821076f handle the case of a NULL transport pointer for BLE. 2015-09-07 14:55:02 +01:00
Rohit Grover
ad8e92acd5 adding an initial prototype for a yotta-config based initialization for BLE transports 2015-09-07 14:55:02 +01:00
Rohit Grover
a462757a6c disallow copy constructor and assignment operators for BLE. 2015-09-07 14:10:35 +01:00
Rohit Grover
3f2f94ec1b update comment header for Gap::updateConnectionParams() 2015-09-01 12:52:31 +01:00
Rohit Grover
626c551477 minor improvement to comments for AuthCallbackParams. 2015-09-01 12:52:31 +01:00
Marcus Chang
6f960cbecd Gap.h - Added onConnection callback chain simarly to the currently present onDisconnection callback chain. 2015-08-30 18:00:19 +01:00
Rohit Grover
f5fb089d00 white space diffs. 2015-08-11 14:14:32 +01:00
Rohit Grover
a59e1ee07b Merge branch 'GattCB_conn_handle' of https://github.com/jpbrucker/ble into jpbrucker-GattCB_conn_handle 2015-08-11 14:02:51 +01:00
Rohit Grover
eec3f3518f URIBeaconConfigService: move declarations of some local variables closer to their use. 2015-08-11 13:51:26 +01:00
Rohit Grover
1b265c4e3d minor cosmetic change to the comment header for GapAdvertisingParams. 2015-08-11 13:50:31 +01:00
Jean-Philippe Brucker
99c7253051 Add connection handle in Gatt callback parameters
This commit paves the way for multiple device implementation:
read/write/HVX callbacks will be able to distinguish between
peripherals by comparing per-device connection handles.
2015-08-11 11:37:08 +01:00
Austin Blackstone
f09b0b6307 modified eddystone service, currently blows away any associated services but it works 2015-08-10 15:00:01 -05:00
Rohit Grover
186500f135 rename to ADVParams::getIntervalInADVUnits() 2015-08-10 14:48:13 +01:00