11
Diff: esp8266.h
- Revision:
- 1:e8b9ee1156c8
- Parent:
- 0:a94222cedd2e
--- a/esp8266.h Fri May 01 14:46:00 2015 +0000 +++ b/esp8266.h Fri Jun 24 01:32:32 2022 +0000 @@ -10,27 +10,14 @@ #include "mbed.h" #include <string> -#include "MODSERIAL.h" +#include "wifi_example.h" + +void moshi(); + +void mima(); -class ESP8266{ - private: - char *ssid; - char *password; - string ip; - bool connection_successful; - MODSERIAL *wifi; - char* sendCmd(char* cmd); - char* firmwareVersion(); - bool reset(); - void setMode(int modeVal); - bool wiredCorrectly(); - bool joinAccessPoint(char *inputSSID, char *inputPassword); - bool gotAnIPAddress(); - bool checkSSID(string inputSSID); - public: - ESP8266(MODSERIAL *input, char* inputSSID, char* inputPassword); - bool checkConnection(); - string listAccessPoints(); - bool disconnect(); - string getMyIP(); -}; \ No newline at end of file +void getMyIP(); + +void lianjie(); + +void UDP(); \ No newline at end of file