AIROC™ BTSDK v4.4 - Documentation | ||||
> More...
Data Structures | |
struct | wiced_bt_beacon_ble_advert_elem_t |
struct | wiced_bt_beacon_multi_advert_data_t |
Functions | |
void | wiced_bt_eddystone_set_data_for_uid (uint8_t eddystone_ranging_data, uint8_t eddystone_namespace[EDDYSTONE_UID_NAMESPACE_LEN], uint8_t eddystone_instance[EDDYSTONE_UID_INSTANCE_ID_LEN], uint8_t adv_data[WICED_BT_BEACON_ADV_DATA_MAX], uint8_t *adv_len) |
Creates Google Eddystone UID format advertising data. More... | |
void | wiced_bt_eddystone_set_data_for_url (uint8_t tx_power, uint8_t urlscheme, uint8_t encoded_url[EDDYSTONE_URL_VALUE_MAX_LEN], uint8_t adv_data[WICED_BT_BEACON_ADV_DATA_MAX], uint8_t *adv_len) |
Creates Google Eddystone URL format advertising data. More... | |
void | wiced_bt_eddystone_set_data_for_eid (uint8_t eddystone_ranging_data, uint8_t eid[EDDYSTONE_EID_LEN], uint8_t adv_data[WICED_BT_BEACON_ADV_DATA_MAX], uint8_t *adv_len) |
Creates Google Eddystone EID format advertising data. More... | |
void | wiced_bt_eddystone_set_data_for_tlm_unencrypted (uint16_t vbatt, uint16_t temp, uint32_t adv_cnt, uint32_t sec_cnt, uint8_t adv_data[WICED_BT_BEACON_ADV_DATA_MAX], uint8_t *adv_len) |
Creates Google Eddystone TLM unencrypted format advertising data. More... | |
void | wiced_bt_eddystone_set_data_for_tlm_encrypted (uint8_t etlm[EDDYSTONE_ETLM_LEN], uint16_t salt, uint16_t mic, uint8_t adv_data[WICED_BT_BEACON_ADV_DATA_MAX], uint8_t *adv_len) |
Creates Google Eddystone TLM encrypted format advertising data. More... | |
void | wiced_bt_ibeacon_set_adv_data (uint8_t ibeacon_uuid[LEN_UUID_128], uint16_t ibeacon_major_number, uint16_t ibeacon_minor_number, uint8_t tx_power_lcl, uint8_t adv_data[WICED_BT_BEACON_ADV_DATA_MAX], uint8_t *adv_len) |
Creates Apple iBeacon format advertising data. More... | |
>
The APIs to create Google Eddystone and Apple iBeacon advertisements.
To Eddystone, see specification at https://github.com/google/eddystone.
To iBeacon, see specification at https://developer.apple.com/ibeacon/.
For more usage details, refer example demo.beacon.
This software, including source code, documentation and related materials ("Software") is owned by Cypress Semiconductor Corporation or one of its affiliates ("Cypress") and is protected by and subject to worldwide patent protection (United States and foreign), United States copyright laws and international treaty provisions. Therefore, you may use this Software only as provided in the license agreement accompanying the software package from which you obtained this Software ("EULA"). If no EULA applies, Cypress hereby grants you a personal, non-exclusive, non-transferable license to copy, modify, and compile the Software source code solely for use in connection with Cypress's integrated circuit products. Any reproduction, modification, translation, compilation, or representation of this Software except as specified above is prohibited without the express written permission of Cypress.
Disclaimer: THIS SOFTWARE IS PROVIDED AS-IS, WITH NO WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, NONINFRINGEMENT, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. Cypress reserves the right to make changes to the Software without notice. Cypress does not assume any liability arising out of the application or use of the Software or any product or circuit described in the Software. Cypress does not authorize its products for use in any products where a malfunction or failure of the Cypress product may reasonably be expected to result in significant property damage, injury or death ("High Risk Product"). By including Cypress's product in a High Risk Product, the manufacturer of such system or application assumes all risk of such use and in doing so agrees to indemnify Cypress against all liability.
void wiced_bt_eddystone_set_data_for_eid | ( | uint8_t | eddystone_ranging_data, |
uint8_t | eid[EDDYSTONE_EID_LEN], | ||
uint8_t | adv_data[WICED_BT_BEACON_ADV_DATA_MAX], | ||
uint8_t * | adv_len | ||
) |
Creates Google Eddystone EID format advertising data.
The application calls the API to populate advertisement data for Google Eddystone EID advertisement format. It returns the adv data buffer and length.
[in] | tx_power | Calibrated TX power, see specification for details for input parameters. |
[in] | urlscheme | URL scheme |
[in] | encoded_url | URL |
[out] | adv_data | Buffer of advertisement data |
[out] | adv_len | Length of advertisement data |
void wiced_bt_eddystone_set_data_for_tlm_encrypted | ( | uint8_t | etlm[EDDYSTONE_ETLM_LEN], |
uint16_t | salt, | ||
uint16_t | mic, | ||
uint8_t | adv_data[WICED_BT_BEACON_ADV_DATA_MAX], | ||
uint8_t * | adv_len | ||
) |
Creates Google Eddystone TLM encrypted format advertising data.
The application calls the API to populate advertisement data for Google Eddystone TLM encrypted advertisement format. It returns the adv data buffer and length.
[in] | etlm | Encrypted TLM data, see specification for details for input parameters. |
[in] | salt | 16-bit Salt |
[in] | mic | 16 bit Message Integrity Check |
[out] | adv_data | Buffer of advertisement data |
[out] | adv_len | Length of advertisement data |
void wiced_bt_eddystone_set_data_for_tlm_unencrypted | ( | uint16_t | vbatt, |
uint16_t | temp, | ||
uint32_t | adv_cnt, | ||
uint32_t | sec_cnt, | ||
uint8_t | adv_data[WICED_BT_BEACON_ADV_DATA_MAX], | ||
uint8_t * | adv_len | ||
) |
Creates Google Eddystone TLM unencrypted format advertising data.
The application calls the API to populate advertisement data for Google Eddystone TLM unencrypted advertisement format. It returns the adv data buffer and length.
[in] | temp | Beacon temperature, see specification for details for input parameters. |
[in] | adv_cnt | Advertising PDU count |
[in] | sec_cnt | Time since power-on or reboot |
[out] | adv_data | Buffer of advertisement data |
[out] | adv_len | Length of advertisement data |
void wiced_bt_eddystone_set_data_for_uid | ( | uint8_t | eddystone_ranging_data, |
uint8_t | eddystone_namespace[EDDYSTONE_UID_NAMESPACE_LEN], | ||
uint8_t | eddystone_instance[EDDYSTONE_UID_INSTANCE_ID_LEN], | ||
uint8_t | adv_data[WICED_BT_BEACON_ADV_DATA_MAX], | ||
uint8_t * | adv_len | ||
) |
Creates Google Eddystone UID format advertising data.
The application calls the API to populate advertisement data for Google Eddystone UID advertisement format. It returns the adv data buffer and length.
[in] | eddystone_ranging_data | Calibrated TX power, see specification for details for input parameters. |
[in] | eddystone_namespace | UID namespace |
[in] | eddystone_instance | Instance |
[out] | adv_data | Buffer of advertisement data |
[out] | adv_len | Length of advertisement data |
void wiced_bt_eddystone_set_data_for_url | ( | uint8_t | tx_power, |
uint8_t | urlscheme, | ||
uint8_t | encoded_url[EDDYSTONE_URL_VALUE_MAX_LEN], | ||
uint8_t | adv_data[WICED_BT_BEACON_ADV_DATA_MAX], | ||
uint8_t * | adv_len | ||
) |
Creates Google Eddystone URL format advertising data.
The application calls the API to populate advertisement data for Google Eddystone URL advertisement format. It returns the adv data buffer and length.
[in] | tx_power | Calibrated TX power, see specification for details for input parameters. |
[in] | urlscheme | URL scheme |
[in] | encoded_url | URL |
[out] | adv_data | Buffer of advertisement data |
[out] | adv_len | Length of advertisement data |
void wiced_bt_ibeacon_set_adv_data | ( | uint8_t | ibeacon_uuid[LEN_UUID_128], |
uint16_t | ibeacon_major_number, | ||
uint16_t | ibeacon_minor_number, | ||
uint8_t | tx_power_lcl, | ||
uint8_t | adv_data[WICED_BT_BEACON_ADV_DATA_MAX], | ||
uint8_t * | adv_len | ||
) |
Creates Apple iBeacon format advertising data.
The application calls the API to populate advertisement data for Apple iBeacon advertisement format. It returns the adv data buffer and length.
[in] | ibeacon_uuid | Customer beacon UUID, see specification for details for input parameters. |
[in] | ibeacon_major_number | Beacon major number |
[in] | ibeacon_minor_number | Beacon minor number |
[in] | tx_power_lcl | measured power |
[out] | adv_data | Buffer of advertisement data |
[out] | adv_len | Length of advertisement data |