爱意满满的作品展示区。
cr4fun

做了一个不需要用户注册的开关云

  •  
  •   cr4fun · Apr 22, 2020 · 3180 views
    This topic created in 2237 days ago, the information mentioned may be changed or developed.

    http://www.deviceswitch.me/

    直接发 POST 即可,需要在 header 里设置 sk 。具体可见网页。

    源码很简单,没有任何难度 https://github.com/iotclouds/switch

    主要用于,让 esp8266 通过 API,开灯或关灯。

    可以使用 android 通过 API 发送 POST 实现间接控制。

    只不过,这种连接,是有延时的。如果 esp8266 每隔 30 秒通过 API GET1 次。肯定没有 MQTT 协议快。

    但是,用于一般设备的控制,也足够了。

    2 replies    2020-04-23 16:46:36 +08:00
    rap16
        1
    rap16  
       Apr 22, 2020
    <img src=" " class="embedded_image" rel="noreferrer" referrerpolicy="no-referrer" times="0">
    labubu
        2
    labubu  
       Apr 23, 2020
    @rap16 笑死我了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2832 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 45ms · UTC 10:12 · PVG 18:12 · LAX 03:12 · JFK 06:12
    ♥ Do have faith in what you're doing.