0% found this document useful (0 votes)
55 views1 page

Ot Ably NK Credentials 5

This C++ code defines a credentials class for storing and retrieving WiFi and Blynk credentials from an ESP8266 or ESP32 microcontroller over a web browser. The class contains public methods for getting credentials, setting up an access point, running server loops, retrieving configuration from EEPROM, and erasing EEPROM. Private methods test the WiFi connection and launch/create a web server. The code was written by Sachin Soni to allow entering credentials over the air.

Uploaded by

Mohamed
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
55 views1 page

Ot Ably NK Credentials 5

This C++ code defines a credentials class for storing and retrieving WiFi and Blynk credentials from an ESP8266 or ESP32 microcontroller over a web browser. The class contains public methods for getting credentials, setting up an access point, running server loops, retrieving configuration from EEPROM, and erasing EEPROM. Private methods test the WiFi connection and launch/create a web server. The code was written by Sachin Soni to allow entering credentials over the air.

Uploaded by

Mohamed
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

/*!

* file OTABlynkCredentials.h
*
* This code is made for entering WiFi and Blynk Credentials
* Over the Air using your web browser.
*
*
* Written by Sachin Soni with
* contributions from the open-source community.
*
*/

#ifdef ESP8266
#include <ESP8266WiFi.h>
#elif defined(ESP32)
#include <WiFi.h>
#else
#error "Board not found"
#endif

#include "Arduino.h"

//
//
// Install these all libraries to make the project work.
//
//
#include <ESPAsyncWebServer.h>
#include <WebSocketsServer.h>
#include <ArduinoJson.h>
#include <EEPROM.h>

class credentials {
public:
bool credentials_get();
void setupAP(char* softap_ssid, char* softap_pass);
void server_loops();
String EEPROM_Config();
void Erase_eeprom();
private:
bool _testWifi(void);
void _launchWeb(void);
void _createWebServer(void);
String ssid = "";
String pass = "";
};

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy