Skip to content

Instantly share code, notes, and snippets.

View robertschnuell's full-sized avatar
🐳

Robert Schnüll robertschnuell

🐳
View GitHub Profile
@robertschnuell
robertschnuell / esp32-matrix_protocol-auth-and-post_message.ino
Last active April 18, 2021 21:56
Authenticating to a matrix protocol api endpoint and posting a specific message at a room -example
#include "Arduino.h"
#include <WiFi.h>
#include <HTTPClient.h>
#include <ArduinoJson.h>
////// Network ////////
const String wifiSsid = "YourWifi";
const String wifiSecret = "YourWifiPassword";
TimerHandle_t wifiReconnectTimer;
@robertschnuell
robertschnuell / esp32-touch-deepsleep-mqtt.ino
Last active June 12, 2018 17:11
ESP32 touch detection - mqtt - deepsleep example
/*
Example code: Detects a touch input which wakes up the esp32 from deepsleep.
Then connects to a WiFi and post the touch event via MQTT.
After finishing this the esp32 will go back to deppsleep.
This whole process takes around 800ms to finish.
author: @robertschnuell
https://interaktives.design