wizfi360  2.1.0.0
Macros | Functions
main.c File Reference

WIZFI360 Click Example. More...

#include "board.h"
#include "log.h"
#include "wizfi360.h"

Macros

#define APP_BUFFER_SIZE   200
 
#define PROCESS_BUFFER_SIZE   200
 
#define RESPONSE_TIMEOUT   100000
 
#define DEMO_SEND_DATA   "MikroE WIZFI360 Click"
 
#define DEMO_SEND_DATA_LENGTH   "22"
 
#define DEMO_SSID   "MikroE Public"
 
#define DEMO_PASSWORD   "mikroe.guest"
 
#define DEMO_EXAMPLE_TCP   "TCP"
 
#define DEMO_EXAMPLE_UDP   "UDP"
 
#define DEMO_REMOTE_ID   "77.46.162.162"
 
#define DEMO_REMOTE_PORT   "51111"
 

Functions

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

Detailed Description

WIZFI360 Click Example.

Description

This example demonstrates the use of the WIZFI360 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, connects to the desired WiFi network, and then connects to the TCP/UDP server and configures SNTP parameter.

Application Task

The demo app displays current time data, sends data messages to the TCP/UDP server, reads and processes all incoming data and displays them on the USB UART.

Additional Function

Note
In order for the examples to work without using Planet Debug, the user needs to set the SSID and password of the target AP.
Author
Nenad Filipovic

Macro Definition Documentation

◆ APP_BUFFER_SIZE

#define APP_BUFFER_SIZE   200

◆ DEMO_EXAMPLE_TCP

#define DEMO_EXAMPLE_TCP   "TCP"

◆ DEMO_EXAMPLE_UDP

#define DEMO_EXAMPLE_UDP   "UDP"

◆ DEMO_PASSWORD

#define DEMO_PASSWORD   "mikroe.guest"

◆ DEMO_REMOTE_ID

#define DEMO_REMOTE_ID   "77.46.162.162"

◆ DEMO_REMOTE_PORT

#define DEMO_REMOTE_PORT   "51111"

◆ DEMO_SEND_DATA

#define DEMO_SEND_DATA   "MikroE WIZFI360 Click"

◆ DEMO_SEND_DATA_LENGTH

#define DEMO_SEND_DATA_LENGTH   "22"

◆ DEMO_SSID

#define DEMO_SSID   "MikroE Public"

◆ PROCESS_BUFFER_SIZE

#define PROCESS_BUFFER_SIZE   200

◆ RESPONSE_TIMEOUT

#define RESPONSE_TIMEOUT   100000

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  )