Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: BLE_API mbed-dev-bin nRF51822
Dependents: microbit-eddystone
Fork of microbit-dal by
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_namespace the uid namespace. Must 10 bytes long. uid_instance the uid instance value. Must 6 bytes long. 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 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:
-
url The url to broadcast 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 168 of file MicroBitEddystone.cpp.
| int setURL | ( | BLEDevice * | ble, |
| const char * | url, | ||
| int8_t | calibratedPower = 0xF0 |
||
| ) |
Set the content of Eddystone URL frames.
- Parameters:
-
url The url to broadcast 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 100 of file MicroBitEddystone.cpp.
Generated on Tue Jul 12 2022 21:07:41 by
1.7.2
