![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Kuo Yiching
Fork of iot_example by
Diff: esp8266.cpp
- Revision:
- 7:49a823b5a935
- Parent:
- 6:629e300b6c3b
- Child:
- 8:cd472721e8a8
--- a/esp8266.cpp Thu Dec 07 11:55:39 2017 +0000 +++ b/esp8266.cpp Wed Dec 13 10:09:44 2017 +0000 @@ -197,7 +197,7 @@ ESP_CMD("m:on(\"message\", function(conn, topic, data)"); ESP_CMD("if topic:find(\"^/control/\") then"); ESP_CMD("local tok = topic:match(\"^/control/.+/(.+)\")"); - ESP_CMD("if tok then print(\"\\035\"..tok..\"+\"..data) end"); + ESP_CMD("if tok then print(\"\\035control+\"..tok..\"+\"..data) end"); ESP_CMD("end"); ESP_CMD("end)");