Button initiated config service

Dependencies:   BLE_API_EddystoneConfigService_2 mbed nRF51822

Fork of BLE_EddystoneBeaconConfigService_3 by URIBeacon

Revision:
31:11e7a505a4be
Parent:
24:8edfe6730cc2
Child:
32:985642364cf5
--- a/main.cpp	Fri Jul 24 02:06:57 2015 +0000
+++ b/main.cpp	Mon Jul 27 18:15:14 2015 +0000
@@ -76,10 +76,13 @@
      */
     EddystoneConfigService::Params_t params;
     bool fetchedFromPersistentStorage = loadURIBeaconConfigParams(&params);
-
+    EddystoneConfigService::UIDNamespaceID_t uidNamespaceID = {0x00, 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, 0x88, 0x99}; // 10Byte Namespace UUID
+    EddystoneConfigService::UIDInstanceID_t  uidInstanceID = {0xAA, 0xBB, 0xCC, 0xDD, 0xEE, 0xFF}; // 6Byte Instance ID
+    uint8_t tlmVersion = 0x00;
+    
     /* Initialize a EddystoneBeaconConfig service providing config params, default URI, and power levels. */
     static EddystoneConfigService::PowerLevels_t defaultAdvPowerLevels = {-20, -4, 0, 10}; // Values for ADV packets related to firmware levels
-    EddystoneBeaconConfig = new EddystoneConfigService(ble, params, !fetchedFromPersistentStorage, "http://mbed.org", defaultAdvPowerLevels);
+    EddystoneBeaconConfig = new EddystoneConfigService(ble, params, !fetchedFromPersistentStorage, "http://mbed.org", uidNamespaceID, uidInstanceID,tlmVersion, defaultAdvPowerLevels);
     if (!EddystoneBeaconConfig->configuredSuccessfully()) {
         error("failed to accommodate URI");
     }