Eddystone - BLE beacon from Google.
More...
Eddystone - BLE beacon from Google.
◆ ble_eddystone_set_adv_data_uid()
int ble_eddystone_set_adv_data_uid |
( |
struct ble_hs_adv_fields * |
adv_fields, |
|
|
void * |
uid, |
|
|
int8_t |
measured_power |
|
) |
| |
Configures the device to advertise Eddystone UID beacons.
- Parameters
-
adv_fields | The base advertisement fields to transform into an eddystone beacon. All configured fields are preserved; you probably want to clear this struct before calling this function. |
uid | The 16-byte UID to advertise. |
measured_power | The Measured Power (RSSI value at 0 Meter). |
- Returns
- 0 on success; BLE_HS_EBUSY if advertising is in progress; BLE_HS_EMSGSIZE if the specified data is too large to fit in an advertisement; Other nonzero on failure.
◆ ble_eddystone_set_adv_data_url()
int ble_eddystone_set_adv_data_url |
( |
struct ble_hs_adv_fields * |
adv_fields, |
|
|
uint8_t |
url_scheme, |
|
|
char * |
url_body, |
|
|
uint8_t |
url_body_len, |
|
|
uint8_t |
suffix, |
|
|
int8_t |
measured_power |
|
) |
| |
Configures the device to advertise Eddystone URL beacons.
- Parameters
-
adv_fields | The base advertisement fields to transform into an eddystone beacon. All configured fields are preserved; you probably want to clear this struct before calling this function. |
url_scheme | The prefix of the URL; one of the BLE_EDDYSTONE_URL_SCHEME values. |
url_body | The middle of the URL. Don't include the suffix if there is a suitable suffix code. |
url_body_len | The string length of the url_body argument. |
url_suffix | The suffix of the URL; one of the BLE_EDDYSTONE_URL_SUFFIX values; use BLE_EDDYSTONE_URL_SUFFIX_NONE if the suffix is embedded in the body argument. |
measured_power | The Measured Power (RSSI value at 0 Meter). |
- Returns
- 0 on success; BLE_HS_EBUSY if advertising is in progress; BLE_HS_EMSGSIZE if the specified data is too large to fit in an advertisement; Other nonzero on failure.