![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
To Be Deploy
Dependencies: BLE_API mbed nRF51822 X_NUCLEO_IDB0XA1
Fork of BLE_EddystoneBeacon_Serviceprod by
Diff: main.cpp
- Revision:
- 37:acd9b4823178
- Parent:
- 34:f6d4a699a1ea
- Child:
- 38:9bc868ab9c21
diff -r 17b4a0ff9abb -r acd9b4823178 main.cpp --- a/main.cpp Tue Sep 20 14:13:43 2016 +0100 +++ b/main.cpp Tue Oct 17 06:21:39 2017 +0000 @@ -55,19 +55,19 @@ } /* Set UID and TLM frame data */ - const UIDNamespaceID_t uidNamespaceID = {0x00, 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, 0x88, 0x99}; - const UIDInstanceID_t uidInstanceID = {0xAA, 0xBB, 0xCC, 0xDD, 0xEE, 0xFF}; + const UIDNamespaceID_t uidNamespaceID = {0x87, 0x4c, 0x88, 0xb2, 0x4e, 0xb5, 0x4a, 0xda, 0xb0, 0x52}; + const UIDInstanceID_t uidInstanceID = {0x33, 0x92, 0xd0, 0x34, 0xaf, 0xdb}; uint8_t tlmVersion = 0x00; /* Initialize a EddystoneBeaconConfig service providing config params, default URI, and power levels. */ static const PowerLevels_t defaultAdvPowerLevels = {-47, -33, -21, -13}; // Values for ADV packets related to firmware levels, calibrated based on measured values at 1m - static const PowerLevels_t radioPowerLevels = {-30, -16, -4, 4}; // Values for radio power levels, provided by manufacturer. + static const PowerLevels_t radioPowerLevels = {4, -30, -16, -4}; // Values for radio power levels, provided by manufacturer. /* Set everything to defaults */ eddyServicePtr = new EddystoneService(ble, defaultAdvPowerLevels, radioPowerLevels); /* Set default URL, UID and TLM frame data if not initialized through the config service */ - eddyServicePtr->setURLData("http://mbed.org"); + eddyServicePtr->setURLData("https://goo.gl/XPGJj6"); eddyServicePtr->setUIDData(&uidNamespaceID, &uidInstanceID); eddyServicePtr->setTLMData(tlmVersion); @@ -76,7 +76,7 @@ eddyServicePtr->onTLMBeaconTemperatureUpdate(tlmBeaconTemperatureCallback); /* Start Eddystone in config mode */ - eddyServicePtr->startBeaconService(5, 5, 5); + eddyServicePtr->startBeaconService(0, 20, 0); } int main(void)