prova invio
Dependencies: BLE_API X_NUCLEO_IDB0XA1 mbed
Fork of BLE_HeartRate_IDB04A1 by
Revision 22:a63bc66036d7, committed 2018-02-12
- Comitter:
- carlotara
- Date:
- Mon Feb 12 08:46:35 2018 +0000
- Parent:
- 21:0e7c08f5386f
- Commit message:
- prova invio
Changed in this revision
| BLE_API.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 |
--- a/BLE_API.lib Wed Oct 05 09:16:58 2016 +0000 +++ b/BLE_API.lib Mon Feb 12 08:46:35 2018 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/teams/Bluetooth-Low-Energy/code/BLE_API/#65474dc93927 +https://os.mbed.com/users/carlotara/code/BLE_API/#28067a1925b5
--- a/main.cpp Wed Oct 05 09:16:58 2016 +0000
+++ b/main.cpp Mon Feb 12 08:46:35 2018 +0000
@@ -20,7 +20,7 @@
DigitalOut led1(LED1, 1);
-const static char DEVICE_NAME[] = "HRM1";
+const static char DEVICE_NAME[] = "HRM45";
static const uint16_t uuid16_list[] = {GattService::UUID_HEART_RATE_SERVICE};
static volatile bool triggerSensorPolling = false;
@@ -91,6 +91,10 @@
}
// update bps
+ // hrService.updateHeartRate(hrmCounter);
+ //hrmCounter=0x34;
+ hrmCounter=0x53;
+ //5361792048656c6c6f20746f204d79204c6974746c6520467269656e64
hrService.updateHeartRate(hrmCounter);
} else {
ble.waitForEvent(); // low power wait for event
