SingingCat 0
application
esp8266_cloud.h
1#ifndef ESP8266_CLOUD_H
2#define ESP8266_CLOUD_H 1
3
4#include <main-header.h>
6void esp_cloud_init();
7void esp_cloud_loop();
9void esp_cloud_deactivate();
10int esp_cloud_is_connected();
11int esp_cloud_is_connecting();
12int esp_cloud_failed_to_connect();
14void esp_cloud_state_update(int code, int data);
15void esp_cloud_chip_notify_reset();
16void esp_info();
17// received the first reply from cloud
18void esp_cloud_answered(struct command *com, struct command *reply);
19#endif
void esp8266_cloud_loop()
called from esp8266 event loop if we are connected
void esp_cloud_init()
this resets the cloud state
Definition: esp8266_cloud.c:57
void esp_cloud_activate()
activate the cloud.
void esp_cloud_state_update(int code, int data)
whenever the esp chip sends us an update about the cloud state this gets called by the event handler ...
Definition: esp8266_cloud.c:82
const char * esp_cloud_get_desired_server()
returns server we want to connect to
Definition: esp8266_cloud.c:68
void esp_cloud_answered(struct command *com, struct command *reply)
called on command timeout or reply