Przeglądaj źródła

led on off with WebSocket architecture

master
gituser 1 tydzień temu
rodzic
commit
01cfa21731
2 zmienionych plików z 3 dodań i 2 usunięć
  1. 2
    1
      LEDLamp.ino
  2. 1
    1
      sloeber.ino.cpp

+ 2
- 1
LEDLamp.ino Wyświetl plik

@@ -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 Wyświetl plik

@@ -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"

Ładowanie…
Anuluj
Zapisz