Eddystone test using modified DAL

Dependencies:   BLE_API mbed-dev-bin nRF51822

Dependents:   microbit-eddystone

Fork of microbit-dal by Lancaster University

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.
int setUID (BLEDevice *ble, const char *uid_namespace, const char *uid_instance, int8_t calibratedPower=0xF0)
 Set the content of Eddystone UID frames.

Detailed Description

Class definition for the MicroBitEddystone.

Definition at line 44 of file MicroBitEddystone.h.


Member Function Documentation

int setUID ( BLEDevice *  ble,
const char *  uid_namespace,
const char *  uid_instance,
int8_t  calibratedPower = 0xF0 
)

Set the content of Eddystone UID frames.

Parameters:
uid_namespacethe uid namespace. Must 10 bytes long.
uid_instancethe uid instance value. Must 6 bytes long.
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 188 of file MicroBitEddystone.cpp.

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 168 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 100 of file MicroBitEddystone.cpp.