瀏覽代碼

led on off with WebSocket architecture

master
gituser 1 周之前
父節點
當前提交
01cfa21731
共有 2 個檔案被更改,包括 3 行新增2 行删除
  1. 2
    1
      LEDLamp.ino
  2. 1
    1
      sloeber.ino.cpp

+ 2
- 1
LEDLamp.ino 查看文件

@@ -392,7 +392,8 @@ void webSocketEvent(uint8_t num, WStype_t type, uint8_t *payload, size_t length)
digitalWrite(ledPin, HIGH);
webSocket.sendTXT(num, "LED OFF");
} else {
// webSocket.sendTXT(num, "ACK: " + msg);
String s = "ACK: " + msg;
webSocket.sendTXT(num, s);
}

break;

+ 1
- 1
sloeber.ino.cpp 查看文件

@@ -2,7 +2,7 @@
//This is a automatic generated file
//Please do not modify this file
//If you touch this file your change will be overwritten during the next build
//This file has been generated on 2026-06-07 22:43:11
//This file has been generated on 2026-06-07 22:47:36

#include "Arduino.h"
#include "Arduino.h"

Loading…
取消
儲存