wifiesp 2.0.0.0
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_SSID   "MikroE Public"
 
#define APP_PASSWORD   "mikroe.guest"
 
#define PROCESS_BUFFER_SIZE   610
 

Functions

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

Variables

uint8_t page []
 
uint8_t page_len [10] = { 0 }
 
uint8_t send_buf [10] = { 0 }
 

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_PASSWORD

#define APP_PASSWORD   "mikroe.guest"

◆ APP_SSID

#define APP_SSID   "MikroE Public"

◆ PROCESS_BUFFER_SIZE

#define PROCESS_BUFFER_SIZE   610

Function Documentation

◆ application_init()

void application_init ( void )

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 )

◆ 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[10] = { 0 }

◆ send_buf

uint8_t send_buf[10] = { 0 }