test

Dependencies:   BLE_API mbed nRF51822

Fork of BLE_Beacon by TAIL

Revision:
1:d9a3dcb8c87c
Parent:
0:fca875b40c8a
--- a/main.cpp	Tue Sep 09 18:14:03 2014 +0000
+++ b/main.cpp	Wed Apr 15 14:02:28 2015 +0000
@@ -48,8 +48,12 @@
     0x4C, 0x00, // Company identifier code (0x004C == Apple)
     0x02,       // ID
     0x15,       // length of the remaining payload
-    0xE2, 0x0A, 0x39, 0xF4, 0x73, 0xF5, 0x4B, 0xC4, // location UUID
-    0xA1, 0x2F, 0x17, 0xD1, 0xAD, 0x07, 0xA9, 0x61,
+    //0xE2, 0x0A, 0x39, 0xF4, 0x73, 0xF5, 0x4B, 0xC4, // location UUID
+    //0xA1, 0x2F, 0x17, 0xD1, 0xAD, 0x07, 0xA9, 0x61,
+    //0x5A, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, // location UUID
+    //0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
+    0x01, 0x12, 0x23, 0x34, 0x45, 0x56, 0x67, 0x78, 
+    0x89, 0x9a, 0xab, 0xbc, 0xcd, 0xde, 0xef, 0xf0,  //Nordic UUID from examples 
     0x00, 0x00, // the major value to differentiate a location
     0x00, 0x00, // the minor value to differentiate a location
     0xC8        // 2's complement of the Tx power (-56dB)
@@ -57,7 +61,7 @@
 
 int main(void)
 {
-    DEBUG("Initialising BTLE transport\n\r");
+    //DEBUG("Initialising BTLE transport\n\r");
     ble.init();
 
     ble.accumulateAdvertisingPayload(GapAdvertisingData::BREDR_NOT_SUPPORTED | GapAdvertisingData::LE_GENERAL_DISCOVERABLE);