Heart Rate Monitor example for Delta BLE platform

This is a very basic BLE example for DELTA DFBM-NQ620 and DELTA DFCM-NNN50 platforms. This example is doing HRM (Heart Rate Monitor) application, the service spec can be found in here Once compiled and download to DELTA platforms, the module start advertising while LED1 is blinking. User can download the APP 'nRF Connect' available in both App Store and Google Play to scan the adverting and connect to the module.

Note that printf use the baudrate 9600 8n1 as default. In Windows, user could find the ready to use com port number in Device Manager and shown as 'mbed Serial Port(COM#)'

/media/uploads/tsungta/mbed_serial_port_1.png

Revision:
1:82331af3e4c9
Parent:
0:c7bcc0b36b5e
Child:
2:d4b007ee15dc
--- a/main.cpp	Thu Oct 13 07:34:53 2016 +0000
+++ b/main.cpp	Tue Mar 14 08:33:26 2017 +0000
@@ -86,6 +86,8 @@
      * BLE object is used in the main loop below. */
     while (ble.hasInitialized()  == false) { /* spin loop */ }
 
+    ble.setTxPower(0);
+    
     // infinite loop
     while (1) {
         // check for trigger from periodicCallback()