wifiesp  2.0.0.0
Macros | Functions | Variables
main.c File Reference

wifiesp Click example More...

#include "board.h"
#include "log.h"
#include "wifiesp.h"
#include "string.h"
#include "conversions.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_READY_FOR_SEND   ">"
 
#define RSP_SEND_OK   "SEND OK"
 
#define RSP_ERROR   "ERROR"
 
#define PROCESS_BUFFER_SIZE   610
 

Functions

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

Variables

uint8_t page []
 
uint8_t page_len [5]
 
uint8_t send_buf [10]
 

Detailed Description

wifiesp Click example

Description

This example connects to the desired WiFi network and then creates web server on the IP address assigned to the click board. The user can connect to the server via web browser.

The demo application is composed of two sections :

Application Init

Initializes driver and wifi communication, then connects to the desired WiFi network and creates web server on the IP address assigned to the click board.

Application Task

Waits for the client request (paste IP address in your web browser and refresh to send a request). The click board will respond by sending a page content to the client.

Author
MikroE Team

Macro Definition Documentation

◆ 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

◆ PROCESS_BUFFER_SIZE

#define PROCESS_BUFFER_SIZE   610

◆ RSP_ERROR

#define RSP_ERROR   "ERROR"

◆ RSP_OK

#define RSP_OK   "OK"

◆ RSP_READY_FOR_SEND

#define RSP_READY_FOR_SEND   ">"

◆ RSP_SEND_OK

#define RSP_SEND_OK   "SEND OK"

Function Documentation

◆ application_init()

void application_init ( void  )

◆ application_task()

void application_task ( void  )

◆ main()

void main ( void  )

◆ wifi_communication_init()

void wifi_communication_init ( void  )

Variable Documentation

◆ page

uint8_t page[]
Initial value:
= "<a href=\"https://www.mikroe.com/\">MikroElektronika</a>\
<h1 style=\"color:red;\">WiFi ESP click board</h1>"

◆ page_len

uint8_t page_len[5]

◆ send_buf

uint8_t send_buf[10]