b102c  2.1.0.0
Macros | Functions
main.c File Reference

B102C Click Example. More...

#include "board.h"
#include "log.h"
#include "b102c.h"

Macros

#define APP_BUFFER_SIZE   500
 
#define PROCESS_BUFFER_SIZE   200
 
#define DEVICE_NAME   "B102C Click"
 
#define AUTO_BROADCAST   "1"
 

Functions

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

Detailed Description

B102C Click Example.

Description

This example demonstrates the use of B102C click board by processing the incoming data and displaying them on the USB UART.

The demo application is composed of two sections :

Application Init

Initializes the driver, then performs a factory reset and sets the local device name.

Application Task

Reads and processes all incoming data and displays them on the USB UART.

Additional Function

Note
For communication with B102C click use the android application on the link: https://play.google.com/store/apps/details?id=com.macdom.ble.blescanner
Author
Stefan Ilic

Macro Definition Documentation

◆ APP_BUFFER_SIZE

#define APP_BUFFER_SIZE   500

◆ AUTO_BROADCAST

#define AUTO_BROADCAST   "1"

◆ DEVICE_NAME

#define DEVICE_NAME   "B102C Click"

◆ PROCESS_BUFFER_SIZE

#define PROCESS_BUFFER_SIZE   200

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  )