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;

Keybase proof

I hereby claim:

  • I am andreasroste on github.
  • I am anroste (https://keybase.io/anroste) on keybase.
  • I have a public key whose fingerprint is 26AB A325 F0C2 E18D C910 E1C9 29E9 40CF 0F2C 84CC

To claim this, I am signing this object: