![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
init
Fork of 仓库 by
Diff: main.cpp
- Revision:
- 2:b10925c474fc
- Parent:
- 1:3b487c4813a2
- Child:
- 3:06080fa094a0
--- a/main.cpp Tue Nov 07 03:15:44 2017 +0000 +++ b/main.cpp Tue Nov 07 04:09:57 2017 +0000 @@ -11,6 +11,7 @@ #include "esp8266.h" + Serial ser2usb(USBTX, USBRX); int main(void) { @@ -21,8 +22,7 @@ ser2usb.printf("Initialization done.\r\n"); while(1) { - client.publish("/smartcar", "awesome smartcar!"); - client.publish("/smartcar", "awesome smartcar!"); + client.publish("pressure", "12345"); wait(1); //char buf[32]; //client.subscribe_poll("/icenter", buf, 32);