add doc link for each library
This commit is contained in:
parent
5040bae419
commit
d236d3e71c
1 changed files with 2 additions and 19 deletions
21
the-cup.ino
21
the-cup.ino
|
|
@ -13,14 +13,14 @@
|
|||
|
||||
#include <WiFiManager.h> // https://github.com/tzapu/WiFiManager
|
||||
|
||||
#include <ESP8266WiFi.h>
|
||||
#include <ESP8266WiFi.h> // https://arduino-esp8266.readthedocs.io/en/latest/esp8266wifi/readme.html
|
||||
#include <ESP8266HTTPClient.h>
|
||||
#include <WiFiClientSecureBearSSL.h>
|
||||
|
||||
// #include "certs.h"
|
||||
|
||||
|
||||
#include <MFRC522v2.h>
|
||||
#include <MFRC522v2.h> // https://github.com/OSSLibraries/Arduino_MFRC522v2
|
||||
#include <MFRC522DriverSPI.h>
|
||||
#include <MFRC522DriverPinSimple.h>
|
||||
#include <MFRC522Debug.h>
|
||||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue