From d236d3e71ceacf7ea7c6fc6553ec796dbbe65e85 Mon Sep 17 00:00:00 2001 From: Christophe Robillard Date: Fri, 7 Nov 2025 17:58:54 +0100 Subject: [PATCH] add doc link for each library --- the-cup.ino | 21 ++------------------- 1 file changed, 2 insertions(+), 19 deletions(-) diff --git a/the-cup.ino b/the-cup.ino index b2c8324..82dc3ac 100644 --- a/the-cup.ino +++ b/the-cup.ino @@ -13,14 +13,14 @@ #include // https://github.com/tzapu/WiFiManager -#include +#include // https://arduino-esp8266.readthedocs.io/en/latest/esp8266wifi/readme.html #include #include // #include "certs.h" -#include +#include // https://github.com/OSSLibraries/Arduino_MFRC522v2 #include #include #include @@ -35,30 +35,13 @@ MFRC522DriverSPI driver_1{ss_1_pin}; MFRC522 reader{driver_1}; // Create MFRC522 instance. void setup() { - // WiFi.mode(WIFI_STA); // explicitly set mode, esp defaults to STA+AP - // it is a good practice to make sure your code sets wifi mode how you want it. - - // put your setup code here, to run once: Serial.begin(115200); pinMode(LED_PIN, OUTPUT); displaySuccess(); - //WiFiManager, Local intialization. Once its business is done, there is no need to keep it around WiFiManager wm; - - // reset settings - wipe stored credentials for testing - // these are stored by the esp library - // wm.resetSettings(); - - // Automatically connect using saved credentials, - // if connection fails, it starts an access point with the specified name ( "AutoConnectAP"), - // if empty will auto generate SSID, if password is blank it will be anonymous AP (wm.autoConnect()) - // then goes into a blocking loop awaiting configuration and will return success result - bool res; - // res = wm.autoConnect(); // auto generated AP name from chipid - // res = wm.autoConnect("AutoConnectAP"); // anonymous ap res = wm.autoConnect("KLUK"); // password protected ap if(!res) {