Skip to content

Instantly share code, notes, and snippets.

View marcelstoer's full-sized avatar
👨‍👩‍👧‍👧
The Earth was made round so that we would not see too far down the road - K.B.

Marcel Stör marcelstoer

👨‍👩‍👧‍👧
The Earth was made round so that we would not see too far down the road - K.B.
View GitHub Profile
@marcelstoer
marcelstoer / wifimanager.h
Created October 17, 2020 21:02
ESP32 WiFi Manager based on ESPAsync_WiFiManager
/**************************************************************************************************/
/* */
/* Adaptation and simplification of the blue-print sketch at */
/* https://github.com/khoih-prog/ESPAsync_WiFiManager/tree/master/examples/Async_ConfigOnSwitch */
/* */
/**************************************************************************************************/
#include <esp_wifi.h>
#include <WiFi.h>
#include <WiFiClient.h>
import okhttp3.Credentials
import okhttp3.OkHttpClient
import okhttp3.Request
import okhttp3.Response
import org.json.JSONObject
import java.time.Duration
import java.time.Instant
import java.util.logging.Logger
// Inspired by https://www.pimwiddershoven.nl/entry/request-an-api-bearer-token-from-gitlab-jwt-authentication-to-control-your-private-docker-registry