BTLE demo for MAXWSNENV.

Dependencies:   BLE_API BMP180 Si7020 mbed MaximBLE

Files at this revision

API Documentation at this revision

Comitter:
enginerd
Date:
Thu Mar 03 14:48:57 2016 +0000
Parent:
0:f71931ae3db1
Child:
2:6f76d6160601
Commit message:
Updated BLE_API and MaximBLE support.

Changed in this revision

BLE_API.lib Show annotated file Show diff for this revision Revisions of this file
MaximBLE.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
--- a/BLE_API.lib	Fri Jul 10 21:28:56 2015 +0000
+++ b/BLE_API.lib	Thu Mar 03 14:48:57 2016 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/teams/Bluetooth-Low-Energy/code/BLE_API/#9c2edf20ea56
+http://mbed.org/teams/Bluetooth-Low-Energy/code/BLE_API/#bfc5b9b6ecf5
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/MaximBLE.lib	Thu Mar 03 14:48:57 2016 +0000
@@ -0,0 +1,1 @@
+https://developer.mbed.org/teams/MaximIntegrated/code/MaximBLE/#b562096246b3
--- a/main.cpp	Fri Jul 10 21:28:56 2015 +0000
+++ b/main.cpp	Thu Mar 03 14:48:57 2016 +0000
@@ -69,7 +69,6 @@
 
 // BLE Objects
 static BLE ble;
-static DeviceInformationService *devInfoService;
 static EnvironmentalService *envService;
 static CurrentTimeService *timeService;
 static LowPowerTimeout bleUpdateTimeout;
@@ -238,7 +237,7 @@
 }
 
 // *****************************************************************************
-void disconnectionCallback(Gap::Handle_t handle, Gap::DisconnectionReason_t reason)
+void disconnectionCallback(const Gap::DisconnectionCallbackParams_t *params)
 {
     /* Restart Advertising on disconnection */
     connHandle = 0;
@@ -345,7 +344,7 @@
     ble.gap().setAdvertisingType(GapAdvertisingParams::ADV_CONNECTABLE_UNDIRECTED);
 
     /* Prepare Services */
-    devInfoService = new DeviceInformationService(ble, "Maxim Integrated",
+    new DeviceInformationService(ble, "Maxim Integrated",
                                                        "WSNENV",
                                                        "000001",
                                                        "1",
--- a/mbed.bld	Fri Jul 10 21:28:56 2015 +0000
+++ b/mbed.bld	Thu Mar 03 14:48:57 2016 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/mbed_official/code/mbed/builds/da0ca467f8b5
\ No newline at end of file
+http://mbed.org/users/mbed_official/code/mbed/builds/87f2f5183dfb
\ No newline at end of file