HoT with iBeacon
Dependencies: microbit-iBeacon
Fork of BTW_Eddystone_Solution1 by
Beacon Hands-on-Training solution code using Eddystone URL and iBeacon formats.
Libraries microbit-iBeacon -> microbit-dal-iBeacon
Includes classes for Eddystone and iBeacon. Eddystone only supports URL and UID formats, not TLM.
Diff: main.cpp
- Revision:
- 2:511941b33870
- Parent:
- 0:580a61fd96a1
- Child:
- 6:9b09bfc43c69
diff -r b6a1fb1d68fc -r 511941b33870 main.cpp --- a/main.cpp Wed Feb 08 07:52:57 2017 +0000 +++ b/main.cpp Thu Mar 16 04:17:16 2017 +0000 @@ -2,7 +2,18 @@ MicroBit uBit; -char URL[] = "https://goo.gl/TlUTF7"; +char URL[] = "https://goo.gl/7diLTx"; + +// lvl : Pwr@ 1m : Pwr@ 0m +// 0 : -90 : -49 +// 1 : -78 : -37 +// 2 : -74 : -33 +// 3 : -69 : -28 +// 4 : -66 : -25 +// 5 : -61 : -20 +// 6 : -56 : -15 +// 7 : -51 : -10 + const int8_t CALIBRATED_POWERS[] = {-49, -37, -33, -28, -25, -20, -15, -10}; uint8_t advertising = 0;