Simple HTTP GET and POST with ESP8266.
Dependencies: ESP8266Interface HTTPClient-SSL WebSocketClient mbed-rtos mbed
Fork of ESP8266_HTTP_HelloWorld by
Diff: main.cpp
- Revision:
- 20:056e849ebfa4
- Parent:
- 19:cd46817e9acf
--- a/main.cpp Tue May 03 13:41:35 2016 +0000 +++ b/main.cpp Tue May 03 13:42:28 2016 +0000 @@ -4,8 +4,8 @@ #include "TCPSocketConnection.h" #include "Websocket.h" -const char* ssid = "janUK"; -const char* pwd = "0624710192"; +const char* ssid = "YOUR_SSID"; +const char* pwd = "YOUR_PWD"; ESP8266Interface wifi(D8, D2, D7, ssid, pwd, 115200); // TX,RX,Reset,SSID,Password,Baud RawSerial pc(USBTX, USBRX); // tx, rx