Button initiated config service

Dependencies:   BLE_API_EddystoneConfigService_2 mbed nRF51822

Fork of BLE_EddystoneBeaconConfigService_3 by URIBeacon

Revision:
40:6f39aee31205
Parent:
39:2c73bc1ff4f5
Child:
43:e4a4f9a8766f
--- a/EddystoneConfigService.h	Thu Sep 10 17:06:18 2015 +0000
+++ b/EddystoneConfigService.h	Thu Sep 10 19:05:44 2015 +0000
@@ -171,6 +171,8 @@
         beaconPeriodChar(UUID_BEACON_PERIOD_CHAR, &params.beaconPeriod),
         resetChar(UUID_RESET_CHAR, &resetFlag) 
         {
+        // set eddystone as not configured yet. 
+        params.isConfigured = false;
         //Set UID frame
         memcpy(defaultUidNamespaceID,defaultUIDNamespaceIDIn,UID_NAMESPACEID_SIZE);
         memcpy(defaultUidInstanceID,defaultUIDInstanceIDIn,UID_INSTANCEID_SIZE);
@@ -279,7 +281,7 @@
         extern void saveURIBeaconConfigParams(const Params_t *paramsP); /* forward declaration; necessary to avoid a circular dependency. */
         saveURIBeaconConfigParams(&params);
 
-        static EddystoneService eddyServ(ble,params.beaconPeriod,params.txPowerMode, (uint8_t *) params.uidNamespaceID, (uint8_t *) params.uidInstanceID, (const char *) params.uriData, params.uriDataLength, params.tlmVersion );
+        static EddystoneService eddyServ(ble,params.beaconPeriod,params.txPowerMode, (uint8_t *) params.uidNamespaceID, (uint8_t *) params.uidInstanceID, (const char *) params.uriData, params.uriDataLength, params.tlmVersion, params.tlmEnabled );
 //        updateTlmPduCount(0);
 //        updateTlmTimeSinceBoot(0);
 
@@ -348,6 +350,7 @@
             resetToDefaults();
         }
         updateCharacteristicValues();
+        params.isConfigured = true;
     }
 
     /*