【问题标题】:Control LED using ESP8266 with Arduino使用 ESP8266 和 Arduino 控制 LED
【发布时间】:2018-05-01 03:56:21
【问题描述】:

我如何发现单击此按钮的时间?

webpage += "Click <a href=\"/H\">here</a> Ligar a led<br>";
webpage += "Click <a href=\"/L\">here</a> Desligar a led <br>";

在没有 Arduino 的 ESP 上,我可以使用“endsWith”来做到这一点,但我不知道如何使用 Arduino 和 ESP 来做到这一点。

函数“esp8266.find("H")”是否有效?

【问题讨论】:

    标签: arduino iot esp8266 arduino-esp8266


    【解决方案1】:

    请更好地解释你的问题。

    在 Arduino-Esp8266 中,字符串以 endWith 结尾。

    例子:

    String test = "AAAAAH";
    if (test.endsWith("H")) {
        //...
    }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-04-09
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多