iBeacon example code for Delta module

To test with this example, please download nRF Beacon app (available both iOS and Android). In the nRF Beacon app, add beacon by pressing the "+" and then select " Add Another Beacon". You need to select the UUID as 0x0112233445566778899aabbccddeeff0, major value 0x1122 and minor value 0x3344. These are the default [UUID, major value, minor value] settings in this example.

Files at this revision

API Documentation at this revision

Comitter:
tsungta
Date:
Thu Mar 16 03:30:28 2017 +0000
Parent:
0:9a65d0b6f172
Commit message:
Update to support NQ62x and NNN50

Changed in this revision

BLE_API.lib Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed-os.lib Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show diff for this revision Revisions of this file
mbed_app.json Show annotated file Show diff for this revision Revisions of this file
nRF51822.lib Show diff for this revision Revisions of this file
shields/TARGET_ST_BLUENRG.lib Show diff for this revision Revisions of this file
diff -r 9a65d0b6f172 -r 1ded0f22e084 BLE_API.lib
--- a/BLE_API.lib	Thu Mar 02 08:18:44 2017 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-https://developer.mbed.org/teams/Bluetooth-Low-Energy/code/BLE_API/#65474dc93927
diff -r 9a65d0b6f172 -r 1ded0f22e084 main.cpp
--- a/main.cpp	Thu Mar 02 08:18:44 2017 +0000
+++ b/main.cpp	Thu Mar 16 03:30:28 2017 +0000
@@ -30,14 +30,14 @@
     
     /**
      * The Beacon payload has the following composition:
-     * 128-Bit / 16byte UUID = E2 0A 39 F4 73 F5 4B C4 A1 2F 17 D1 AD 07 A9 61
+     * 128-Bit / 16byte UUID = 01122334-4556-6778-899A-ABBCCDDEEFF0
      * Major/Minor  = 0x1122 / 0x3344
      * Tx Power     = 0xC8 = 200, 2's compliment is 256-200 = (-56dB)
      *
      * Note: please remember to calibrate your beacons TX Power for more accurate results.
      */
-    const uint8_t uuid[] = {0xE2, 0x0A, 0x39, 0xF4, 0x73, 0xF5, 0x4B, 0xC4,
-                            0xA1, 0x2F, 0x17, 0xD1, 0xAD, 0x07, 0xA9, 0x61};
+    const uint8_t uuid[] = {0x01, 0x12, 0x23, 0x34, 0x45, 0x56, 0x67, 0x78,
+                            0x89, 0x9A, 0xAB, 0xBC, 0xCD, 0xDE, 0xEF, 0xF0};
     uint16_t majorNumber = 1122;
     uint16_t minorNumber = 3344;
     uint16_t txPower     = 0xC8;
diff -r 9a65d0b6f172 -r 1ded0f22e084 mbed-os.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed-os.lib	Thu Mar 16 03:30:28 2017 +0000
@@ -0,0 +1,1 @@
+https://github.com/ARMmbed/mbed-os/#f4864dc6429e1ff5474111d4e0f6bee36a759b1c
diff -r 9a65d0b6f172 -r 1ded0f22e084 mbed.bld
--- a/mbed.bld	Thu Mar 02 08:18:44 2017 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-http://mbed.org/users/mbed_official/code/mbed/builds/0ab6a29f35bf
\ No newline at end of file
diff -r 9a65d0b6f172 -r 1ded0f22e084 mbed_app.json
--- a/mbed_app.json	Thu Mar 02 08:18:44 2017 +0000
+++ b/mbed_app.json	Thu Mar 16 03:30:28 2017 +0000
@@ -1,13 +1,12 @@
 {
-    "target_overrides": {
-        "K64F": {
-            "target.features_add": ["BLE"],
-            "target.extra_labels_add": ["ST_BLUENRG"],
-            "target.macros_add": ["IDB0XA1_D13_PATCH"]
+    "config": {
+        "lf_clock_rc_calib_timer_interval": {
+            "value": 16,
+            "macro_name": "MBED_CONF_NORDIC_NRF_LF_CLOCK_CALIB_TIMER_INTERVAL"
         },
-        "NUCLEO_F401RE": {
-            "target.features_add": ["BLE"],
-            "target.extra_labels_add": ["ST_BLUENRG"]
+        "lf_clock_rc_calib_mode_config": {
+            "value": 0,
+            "macro_name": "MBED_CONF_NORDIC_NRF_LF_CLOCK_CALIB_MODE_CONFIG"
         }
     }
 }
\ No newline at end of file
diff -r 9a65d0b6f172 -r 1ded0f22e084 nRF51822.lib
--- a/nRF51822.lib	Thu Mar 02 08:18:44 2017 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-https://mbed.org/teams/Nordic-Semiconductor/code/nRF51822/#c90ae1400bf2
diff -r 9a65d0b6f172 -r 1ded0f22e084 shields/TARGET_ST_BLUENRG.lib
--- a/shields/TARGET_ST_BLUENRG.lib	Thu Mar 02 08:18:44 2017 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-https://developer.mbed.org/teams/ST/code/X_NUCLEO_IDB0XA1/#fa98703ece8e