grove_esp8266
Embed:
(wiki syntax)
Show/hide line numbers
grove_esp8266_class.h
00001 00002 00003 00004 #ifndef __GROVE_ESP8266_CLASS_H__ 00005 #define __GROVE_ESP8266_CLASS_H__ 00006 00007 #include "grove_esp8266.h" 00008 00009 //GROVE_NAME "Grove_Esp8266" 00010 //IF_TYPE UART 00011 //IMAGE_URL http://www.seeedstudio.com/depot/includes/templates/bootstrap/images/ico/grove.png 00012 00013 class GroveEsp8266 00014 { 00015 public: 00016 GroveEsp8266(int pintx, int pinrx); 00017 bool write_setup(void); 00018 bool read_lux(uint32_t *lux); 00019 bool attach_event_handler(CALLBACK_T handler); 00020 00021 bool read_version(void); 00022 bool write_joinwifi(char *ssid, char *pwd); 00023 bool write_socketasclient(char *ip, unsigned int port); 00024 bool read_aplist(void); 00025 bool write_msg(char *msg, unsigned int len); 00026 00027 00028 private: 00029 UART_T *uart; 00030 }; 00031 00032 #endif
Generated on Thu Jul 14 2022 10:03:58 by 1.7.2