瀏覽代碼

led on off with WebSocket architecture

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

+ 2
- 1
LEDLamp.ino 查看文件

digitalWrite(ledPin, HIGH); digitalWrite(ledPin, HIGH);
webSocket.sendTXT(num, "LED OFF"); webSocket.sendTXT(num, "LED OFF");
} else { } else {
// webSocket.sendTXT(num, "ACK: " + msg);
String s = "ACK: " + msg;
webSocket.sendTXT(num, s);
} }


break; break;

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

//This is a automatic generated file //This is a automatic generated file
//Please do not modify this file //Please do not modify this file
//If you touch this file your change will be overwritten during the next build //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"
#include "Arduino.h" #include "Arduino.h"

Loading…
取消
儲存