Dung Nguyen / Mbed 2 deprecated TimeSync

Dependencies:   BLE_API mbed nRF51822

Fork of BLE_GATT_Example by Bluetooth Low Energy

Files at this revision

API Documentation at this revision

Comitter:
andreydung
Date:
Wed Jun 14 21:35:52 2017 +0000
Parent:
33:65b7bedb0877
Commit message:
4 TX power

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Mon Jun 12 22:58:39 2017 +0000
+++ b/main.cpp	Wed Jun 14 21:35:52 2017 +0000
@@ -6,7 +6,7 @@
 uint16_t readCharUUID       = 0xA001;
 uint16_t writeCharUUID      = 0xA002;
 
-const static char     DEVICE_NAME[]        = "timesync1"; // change this
+const static char     DEVICE_NAME[]        = "timesync2"; // change this
 static const uint16_t uuid16_list[]        = {0xFFFF}; //Custom UUID, FFFF is reserved for development
 
 
@@ -82,7 +82,7 @@
     
     BLE& ble = BLE::Instance(BLE::DEFAULT_INSTANCE);
     ble.init(bleInitComplete);
-    ble.setTxPower(-20);
+    ble.setTxPower(-4);
     
     /* SpinWait for initialization to complete. This is necessary because the
      * BLE object is used in the main loop below. */