YX ZHANG
/
iot_example
IoT demo
Fork of my_example_esp8266 by
esp8266.h
- Committer:
- brainliang
- Date:
- 2017-10-11
- Revision:
- 0:63af4719467f
- Child:
- 1:3b487c4813a2
File content as of revision 0:63af4719467f:
class Esp8266 { //声明一个类 bool network_start; bool mqtt_start; public: // 0--client mode 1--host mode Esp8266(int mode = 0); // 通用 bool reset(); // 连接模式 bool connect_wifi(); bool weblogin(); bool connect_mqtt_broker(char *ip); bool publish(char *topic, char *data, int size = -1); bool subscribe_poll(char *topic, char *data, int size = -1); // 热点模式 };