bletx 2.0.0.0
main.c File Reference

BleTx Click example. More...

#include "board.h"
#include "log.h"
#include "bletx.h"

Macros

#define URI
 

Functions

void application_init (void)
 
void application_task (void)
 
int main (void)
 

Variables

bletx_adv_cfg_t adv_cfg
 
bletx_eddystone_data_t adv_data
 

Detailed Description

BleTx Click example.

Description

This library contains API for the BLE TX Click driver. This example processes data from BLE TX Click, BLE TX Click Bluetooth® Low Energy compliant advertising transmission can be achieved by simply configuring the transmission power, data, and transmission - start trigger.

The demo application is composed of two sections :

Application Init

Initialization of I2C module and log UART. Initializes driver and set performs the default configuration. Configure Bluetooth Low Energy Beacons to transmit so-called advertising frames. Configuration of the Eddystone URI, UID, or TLM Bluetooth Low Energy Beacons profile task depends on uncommented code. Eddystone ( URI ) : broadcasts a URL of at most 15 characters that redirects to a website that is secured using SSL. Eddystone ( UID ) : broadcasts an identifying code that allows apps to retrieve information from app servers. Eddystone ( TLM ) : broadcasts information about the beacon, include battery level, sensor data, or other relevant information to beacon administrators.

Application Task

This is an example that shows the use of a BLE TX click board™. In this example, the application turns the selected advertising frames ON and OFF for a period of 10 seconds.

Note
For scanning BLE TX click board™ BLE Scanner is a recommended Android application and you can find it at the link: https://play.google.com/store/apps/details?id=com.macdom.ble.blescanner
Author
Nenad Filipovic

Macro Definition Documentation

◆ URI

#define URI

Function Documentation

◆ application_init()

void application_init ( void )

< Logger config object.

< Click config object.

Logger initialization. Default baud rate: 115200 Default log level: LOG_LEVEL_DEBUG

Note
If USB_UART_RX and USB_UART_TX are defined as HAL_PIN_NC, you will need to define them manually for log to work. See LOG_MAP_USB_UART macro definition for detailed explanation.

◆ application_task()

void application_task ( void )

◆ main()

int main ( void )

Variable Documentation

◆ adv_cfg

bletx_adv_cfg_t adv_cfg

◆ adv_data