add iBeacon functionality
Dependencies: BLE_API mbed-dev-bin nRF51822
Fork of microbit-dal by
MicroBitIBeacon Class Reference
Class definition for the MicroBitIBeacon. More...
#include <MicroBitIBeacon.h>
Public Member Functions | |
| int | setParams (BLEDevice *ble, const UUID &proximityUUID, int16_t major, int16_t minor, int8_t calibratedPower=0xF0) |
| Set the content of iBeacon frames. | |
Detailed Description
Class definition for the MicroBitIBeacon.
Definition at line 44 of file MicroBitIBeacon.h.
Member Function Documentation
| int setParams | ( | BLEDevice * | ble, |
| const UUID & | proximityUUID, | ||
| int16_t | major, | ||
| int16_t | minor, | ||
| int8_t | calibratedPower = 0xF0 |
||
| ) |
Set the content of iBeacon frames.
- Parameters:
-
proximityUUID 16-byte proximity UUID major 2-byte major value minor 2-byte minor value calibratedPower the transmission range of the beacon (Defaults to: 0xF0 ~10m).
- Note:
- The calibratedPower value ranges from -100 to +20 to a resolution of 1. The calibrated power should be binary encoded. More information can be found at https://github.com/google/eddystone/tree/master/eddystone-uid#tx-power
Definition at line 80 of file MicroBitIBeacon.cpp.
Generated on Tue Jul 12 2022 21:36:43 by
1.7.2
