Skip to content

Instantly share code, notes, and snippets.

View andreasroste's full-sized avatar

Andreas Røste andreasroste

  • Hønefoss, Norway
View GitHub Profile
@andreasroste
andreasroste / mqtt_tls_working.ino
Last active June 21, 2022 11:59 — forked from eLement87/mqtt_tls_working.ino
ESP8266 Secure MQTT Connection with Client Certificate Authentication
#include <FS.h>
#include <ESP8266WiFi.h>
#include <WiFiClientSecure.h>
#include <PubSubClient.h>
#include <time.h>
// Insert your FQDN of your MQTT Broker
#define MQTT_SERVER "mqtt.srvx1.local"
const char* mqtt_server = MQTT_SERVER;