Skip to content

Instantly share code, notes, and snippets.

@xxxAHMEDxxx
xxxAHMEDxxx / esp8266-esp01-relay-web-mqtt.ino
Created December 4, 2022 01:08 — forked from jeroavf/esp8266-esp01-relay-web-mqtt.ino
ESP8266 ESP-01 relay control using Web server or MQTT
#include <PubSubClient.h>
#include <ESP8266WiFi.h>
#include <ESP8266WebServer.h>
const char* wifi_ssid = "XXXXX";
const char* wifi_password = "XXXXX";
char* mqtt_server = "iot.eclipse.org";
char* mqtt_user = "";