Fork of the offical HSP_RPC_GUI firmware

Dependencies:   USBDevice

Fork of MAXREFDES100 firmware for MAX32620HSP

Revision:
1:9490836294ea
Parent:
0:e4a10ed6eb92
--- a/HSP/Hsp_BLE/BluetoothLE/BluetoothLE.cpp	Tue Oct 25 15:22:11 2016 +0000
+++ b/HSP/Hsp_BLE/BluetoothLE/BluetoothLE.cpp	Fri Apr 21 12:12:30 2017 -0500
@@ -37,8 +37,8 @@
  * @brief Constructor for class
  */
 BluetoothLE::BluetoothLE(BLE *ble, int numberOfCharacteristics)
-    : ble(ble), runningIndex(0),
-      numberOfCharacteristics(numberOfCharacteristics) {
+    : ble(ble), numberOfCharacteristics(numberOfCharacteristics), runningIndex(0)
+       {
   characteristics = new Characteristic *[numberOfCharacteristics];
   gattCharacteristics = new GattCharacteristic *[numberOfCharacteristics];
 }
@@ -89,21 +89,11 @@
   ble->startAdvertising();
 }
 
-static const Gap::ConnectionParams_t paramsLowPower = {
-    400,    /**< Minimum Connection Interval in 1.25 ms units, see @ref BLE_GAP_CP_LIMITS.*/
-    400,    /**< Maximum Connection Interval in 1.25 ms units, see @ref BLE_GAP_CP_LIMITS.*/
-    60,     /**< Slave Latency in number of connection events, see @ref BLE_GAP_CP_LIMITS.*/
-    3100    /**< Connection Supervision Timeout in 10 ms units, see @ref BLE_GAP_CP_LIMITS.*/
-};
-
-static Gap::Handle_t connHandle = 0;
-
 /**
  * @brief Called on BLE connection
  */
 void BluetoothLE::connectionCallback(
     const Gap::ConnectionCallbackParams_t *params) {
-  connHandle = params->handle;
 }
 
 /**