wifi11  2.0.0.0
Macros | Functions
main.c File Reference

Wifi11 Click example. More...

#include "board.h"
#include "log.h"
#include "wifi11.h"
#include "string.h"

Macros

#define APP_OK   0
 
#define APP_ERROR_DRIVER   -1
 
#define APP_ERROR_OVERFLOW   -2
 
#define APP_ERROR_TIMEOUT   -3
 
#define RSP_OK   "OK"
 
#define RSP_ERROR   "ERROR"
 
#define AP_SSID   ""
 
#define AP_PASSWORD   ""
 
#define LOCAL_PORT   1
 
#define PROCESS_BUFFER_SIZE   500
 

Functions

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

Detailed Description

Wifi11 Click example.

Description

This example reads and processes data from WiFi 11 clicks.

The demo application is composed of two sections :

Application Init

Initializes the driver and powers up the module, then connects to the desired AP and creates TCP and UDP servers on the desired local port.

Application Task

Logs all the received data and module's responses on the USB UART.

Additional Function

Note
In order for the example to work, user needs to set the AP SSID, password, and Local port on which the TCP and UDP servers will be created. Enter valid data for the following macros: AP_SSID, AP_PASSWORD and LOCAL_PORT.
Author
MikroE Team

Macro Definition Documentation

◆ AP_PASSWORD

#define AP_PASSWORD   ""

◆ AP_SSID

#define AP_SSID   ""

◆ APP_ERROR_DRIVER

#define APP_ERROR_DRIVER   -1

◆ APP_ERROR_OVERFLOW

#define APP_ERROR_OVERFLOW   -2

◆ APP_ERROR_TIMEOUT

#define APP_ERROR_TIMEOUT   -3

◆ APP_OK

#define APP_OK   0

◆ LOCAL_PORT

#define LOCAL_PORT   1

◆ PROCESS_BUFFER_SIZE

#define PROCESS_BUFFER_SIZE   500

◆ RSP_ERROR

#define RSP_ERROR   "ERROR"

◆ RSP_OK

#define RSP_OK   "OK"

Function Documentation

◆ application_init()

void application_init ( void  )

◆ application_task()

void application_task ( void  )

◆ main()

void main ( void  )