KEN OGAMI / microbit-dal-iBeacon

Dependencies:   BLE_API mbed-dev-bin nRF51822

Fork of microbit-dal by Ken Ogami

Embed: (wiki syntax)

« Back to documentation index

MicroBitIBeacon Class Reference

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:
proximityUUID16-byte proximity UUID
major2-byte major value
minor2-byte minor value
calibratedPowerthe 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.