print(string.format("\n當(dāng)前ST配置:\n\tssid:\"%s\"\n\tpassword:\"%s\"\n\tbssid:\"%s\"\n\tbssid_set:%s\n", sta_config.ssid, sta_config.pwd, sta_config.bssid, (sta_config.bssid_set and "true" or "false")))
end
--創(chuàng)建一個(gè)TCP客戶端
cu = net.createConnection(net.TCP,0)
cu:on("receive",function(cu,pay) --客戶端接收回調(diào)
print(pay) --打印接收消息
r = sjson.decode(pay) --接收數(shù)據(jù)處理
if r.M == "WELCOME TO BIGIOT" then --服務(wù)器連接成功判斷