This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
coturn: | |
image: coturn/coturn:alpine | |
command: > | |
-n --log-file=stdout | |
--min-port=49160 --max-port=49200 | |
--listening-port=3488 | |
--fingerprint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <ESP8266WiFi.h> | |
#include <PubSubClient.h> | |
#include <ArduinoJson.h> | |
// WiFi | |
#define WIFI_AP "WiFi SSID" | |
#define WIFI_PASSWORD "Password" | |
// MQTT | |
#define MQTT_SERVER "192.168.x.x" // MQTT Server IP (e.g. the IP of HA) | |
#define MQTT_USER "mqtt" // MQTT username |