embedded-software
reusable software modules for embedded systems
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
esp8266.h
Go to the documentation of this file.
1 
31 #ifndef _ESP8266_H_
32 #define _ESP8266_H_
33 
34 #define MODE_STATION 1
35 #define MODE_SOFTAP 2
36 #define MODE_SOFTAP_STATION 3
37 
38 #include <stdint.h>
39 #include "project_settings.h"
40 
41 #ifndef USE_MODULE_TASK
42 #warning "USE_MODULE_TASK not defined in project_settings.h. Other modules won't be able to utilize this module."
43 #endif
44 
45 #ifndef USE_MODULE_BUFFER_PRINTF
46 #error "This module requires optional UART functionality provided by buffer_printf. Please declare USE_MODULE_BUFFER_PRINTF in project_settings.h"
47 #endif
48 
56 void ESP8266_ConnectNetwork(char * network_ssid, char * network_pass, uint8_t flash_settings);
57 
64 void ESP8266_SetMode(uint8_t mode, uint8_t flash_settings);
65 
68 void ESP8266_Reset(void);
69 
77 void ESP8266_HTTP_GET(char * hostname, int port, char * uri, char * payload)
78 
79 
83 int ESP8266_CalcLength(const char * s);
84 
87 #endif
void ESP8266_SetMode(uint8_t mode, uint8_t flash_settings)
Definition: esp8266.c:44
void ESP8266_Reset(void)
Definition: esp8266.c:40
int ESP8266_CalcLength(const char *s)
Definition: esp8266.c:52
void ESP8266_HTTP_GET(char *hostname, int port, char *uri, char *payload) int ESP8266_CalcLength(const char *s)
void ESP8266_ConnectNetwork(char *network_ssid, char *network_pass, uint8_t flash_settings)
Definition: esp8266.c:20