* Relocated subreposiroty and added ESP-classes, problem with systick.h persists * added test to main * Clean directory by moving MQTT related classes to their own folders in /src /inc * Relocated subreposiroty and added ESP-classes, problem with systick.h persists * added test to main * rm MQTT test func Co-authored-by: Vasily Davydov <vasilydavydovmail@yahoo.com>
21 lines
404 B
C
21 lines
404 B
C
#ifndef ESP8266_H_
|
|
#define ESP8266_H_
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
|
|
int esp_socket(const char *ssid, const char *password) ;
|
|
int esp_connect(int sockfd, const char *addr, int port);
|
|
int esp_read(int sockfd, void *data, int length);
|
|
int esp_write(int sockfd, const void *data, int length);
|
|
int esp_close(int sockfd);
|
|
int esp_shutdown(int sockfd, int how);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|