Andrea Sortino / X_NUCLEO_IDB0XA1

Dependents:   BLE_GENERALE

Fork of X_NUCLEO_IDB0XA1 by ST

Files at this revision

API Documentation at this revision

Comitter:
Andrea Palmieri
Date:
Fri May 20 16:59:24 2016 +0200
Parent:
230:6eb53072d82b
Child:
232:aead10288880
Commit message:
Minor change

Signed-off-by: Andrea Palmieri <andrea.palmieri@st.com>

Changed in this revision

source/BlueNRGGattClient.cpp Show annotated file Show diff for this revision Revisions of this file
source/platform/btle.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/source/BlueNRGGattClient.cpp	Thu May 19 09:44:46 2016 +0200
+++ b/source/BlueNRGGattClient.cpp	Fri May 20 16:59:24 2016 +0200
@@ -766,6 +766,7 @@
   GattAttribute::Handle_t valueHandle = characteristic.getValueHandle();
   GattAttribute::Handle_t lastHandle = characteristic.getLastHandle();
 
+  PRINTF("Starting aci_gatt_disc_all_charac_descriptors...\n\r");
   ret = aci_gatt_disc_all_charac_descriptors(connHandle, valueHandle, lastHandle);
 
   if (ret == BLE_STATUS_SUCCESS) {
--- a/source/platform/btle.cpp	Thu May 19 09:44:46 2016 +0200
+++ b/source/platform/btle.cpp	Fri May 20 16:59:24 2016 +0200
@@ -263,6 +263,7 @@
   // Observer role is not supported by X-NUCLEO-IDB04A1, return BLE_ERROR_NOT_IMPLEMENTED
   if(bnrg_expansion_board == IDB05A1) {
       PRINTF("scan_interval=%d scan_window=%d\n\r", scan_interval, scan_window);
+      PRINTF("scan_type=%d own_address_type=%d\n\r", scan_type, own_address_type);
       ret = aci_gap_start_observation_procedure(scan_interval,
                                                 scan_window,
                                                 scan_type,
@@ -605,7 +606,6 @@
           break;
         case EVT_BLUE_GATT_PROCEDURE_COMPLETE:
           {
-            //PRINTF("EVT_BLUE_GATT_PROCEDURE_COMPLETE\n\r");
             evt_gatt_procedure_complete *evt = (evt_gatt_procedure_complete*)blue_evt->data;
             PRINTF("EVT_BLUE_GATT_PROCEDURE_COMPLETE error_code=%d\n\r", evt->error_code);
             BlueNRGGattClient::getInstance().gattProcedureCompleteCB(evt->conn_handle, evt->error_code);
@@ -614,7 +614,6 @@
           
         case EVT_BLUE_GAP_DEVICE_FOUND:
           {
-            PRINTF("EVT_BLUE_GAP_DEVICE_FOUND\n\r");
             evt_gap_device_found *pr = (evt_gap_device_found*)blue_evt->data;
             PRINTF("EVT_BLUE_GAP_DEVICE_FOUND evt_type=%d\n\r", pr->evt_type);