NimBLE-Arduino 2.1.2
Loading...
Searching...
No Matches
Eddystone - BLE beacon from Google

Eddystone - BLE beacon from Google. More...

Functions

int ble_eddystone_set_adv_data_uid (struct ble_hs_adv_fields *adv_fields, void *uid, int8_t measured_power)
 
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)
 

Detailed Description

Eddystone - BLE beacon from Google.

Function Documentation

◆ 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_fieldsThe 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.
uidThe 16-byte UID to advertise.
measured_powerThe 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_fieldsThe 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_schemeThe prefix of the URL; one of the BLE_EDDYSTONE_URL_SCHEME values.
url_bodyThe middle of the URL. Don't include the suffix if there is a suitable suffix code.
url_body_lenThe string length of the url_body argument.
url_suffixThe 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_powerThe 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.