<em id="ri2my"></em>
  • <em id="ri2my"></em>
    <em id="ri2my"><label id="ri2my"><nav id="ri2my"></nav></label></em>
  • <em id="ri2my"><label id="ri2my"></label></em>
    <div id="ri2my"></div>
    1. <em id="ri2my"><label id="ri2my"></label></em>
    2. <em id="ri2my"><ol id="ri2my"></ol></em>
      <em id="ri2my"></em>

      1. 8266對接天貓精靈固件

        作者:GAO0594 | 更新時間:2019-11-05 | 瀏覽量:1280

        8266對接天貓精靈固件,誰有?

        LED =3 gpio.mode(LED,gpio.OUTPUT) cu = net.createConnection(net.TCP) cu:connect(port, host) ok, s = pcall(sjson.encode, {M="checkin",ID=DEVICEID,K=APIKEY}) if ok then print(s) else print("failed to encode!") end cu:on("receive", function(cu, c) print(c) r = sjson.decode(c) if r.M == "say" then if r.C == "play" then gpio.write(LED, gpio.HIGH) ok, played = pcall(sjson.encode, {M="say",ID=r.ID,C="LED turn on!"}) cu:send( played.."\n" ) end if r.C == "stop" then gpio.write(LED, gpio.LOW) ok, stoped = pcall(sjson.encode, {M="say",ID=r.ID,C="LED turn off!"}) cu:send( stoped.."\n" ) end end end) tmr.create():alarm(20000, tmr.ALARM_AUTO, function() cu:send( s.."\n" ) print(s) end)

        評論:共2條

        GAO0594 評論于:2019-10-30 00:22:52
        01S的,ESP-12F 5路輸出口。
        GAO0594 評論于:2019-11-05 15:47:32
        8266刷固件工具我有,我的Q我
        編譯工具源代碼以及環境配置,有沒有大蝦指教一下?/
        返回頂部

        <em id="ri2my"></em>
      2. <em id="ri2my"></em>
        <em id="ri2my"><label id="ri2my"><nav id="ri2my"></nav></label></em>
      3. <em id="ri2my"><label id="ri2my"></label></em>
        <div id="ri2my"></div>
        1. <em id="ri2my"><label id="ri2my"></label></em>
        2. <em id="ri2my"><ol id="ri2my"></ol></em>
          <em id="ri2my"></em>

          1. 免费高清视频