wifiesp
2.0.0.0
|
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] |
wifiesp Click example
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 :
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.
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.
#define APP_ERROR_DRIVER -1 |
#define APP_ERROR_OVERFLOW -2 |
#define APP_ERROR_TIMEOUT -3 |
#define APP_OK 0 |
#define PROCESS_BUFFER_SIZE 610 |
#define RSP_ERROR "ERROR" |
#define RSP_OK "OK" |
#define RSP_READY_FOR_SEND ">" |
#define RSP_SEND_OK "SEND OK" |
void application_init | ( | void | ) |
void application_task | ( | void | ) |
void main | ( | void | ) |
void wifi_communication_init | ( | void | ) |
uint8_t page[] |
uint8_t page_len[5] |
uint8_t send_buf[10] |