Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: BLE_API mbed nRF51822
Fork of BLE_GATT_Example by
Revision 34:0a5b9e4e7680, committed 2017-06-14
- 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. */
    