fork to bluetooth account.

Dependencies:   BLE_API mbed-dev-bin nRF51822

Fork of microbit-dal by Ken Ogami

Embed: (wiki syntax)

« Back to documentation index

MicroBitEddystone Class Reference

MicroBitEddystone Class Reference

Class definition for the MicroBitEddystone. More...

#include <MicroBitEddystone.h>

Public Member Functions

int setURL (BLEDevice *ble, const char *url, int8_t calibratedPower=0xF0)
 Set the content of Eddystone URL frames.
int setURL (BLEDevice *ble, ManagedString url, int8_t calibratedPower=0xF0)
 Set the content of Eddystone URL frames, but accepts a ManagedString as a url.

Detailed Description

Class definition for the MicroBitEddystone.

Definition at line 44 of file MicroBitEddystone.h.


Member Function Documentation

int setURL ( BLEDevice *  ble,
ManagedString  url,
int8_t  calibratedPower = 0xF0 
)

Set the content of Eddystone URL frames, but accepts a ManagedString as a url.

Parameters:
urlThe url to broadcast
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 158 of file MicroBitEddystone.cpp.

int setURL ( BLEDevice *  ble,
const char *  url,
int8_t  calibratedPower = 0xF0 
)

Set the content of Eddystone URL frames.

Parameters:
urlThe url to broadcast
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 93 of file MicroBitEddystone.cpp.