car

Dependencies:   mbed

Fork of warehouse by Keegan Hu

Revision:
1:3b487c4813a2
Parent:
0:63af4719467f
Child:
2:b10925c474fc
--- a/main.cpp	Wed Oct 11 08:40:04 2017 +0000
+++ b/main.cpp	Tue Nov 07 03:15:44 2017 +0000
@@ -14,7 +14,9 @@
 Serial ser2usb(USBTX, USBRX);
 
 int main(void) {
-    Esp8266 client(0);
+    // 选定与 esp8266 相连接的串口,WiFi 名称和密码
+    // 参数分别为 TX pin / RX pin / SSID / Password
+    Esp8266 client(PC_10, PC_11, "TSINGHUA.iCenter", "TS.icenter");
     client.connect_mqtt_broker("tdxls-iot.xicp.net");
     ser2usb.printf("Initialization done.\r\n");