Skip to content

A simple web interface for configuring ESP8266-based devices (after installation)

Notifications You must be signed in to change notification settings

MazdakFatahi/sodcoWiFiManager

Repository files navigation

sodcoWiFiManager (myWiFiManager)

A simple web interface for ESP8266 to configure the installed nodes!

Usage

Using the code you can configure ESP nodes after installation via web interface.
I have aleady costomize the code as a ThingsBoard client. You can modify it for any tasks as you want.
you can use the included example for DHT11 WiFi sensor, but if you want your own please follow the steps:

  • Create your Arduino project.
  • add the following lines just at the begining of your file.
	#include <FS.h>                   //this needs to be first, or it all crashes and burns...
	#include <PubSubClient.h>
	#include  <ArduinoJson.h>          
	#include <ESP8266WiFi.h>
	#include <WiFiClient.h>
	#include <ESP8266WebServer.h>
	#include "myWiFiManager.h"

3-Program your setup():

	void setup() {
		Serial.begin(115200);
		Serial.println("Initializing...");  
		myWiFiManagerSetup();
		/**************************************/
		//Do what you want!!!
		/**************************************/
	}
  • Create the loop:
	void loop() {
		server.handleClient();
		if(APisConnected)
		{
			/*****************************************/
			//Do what you want!!!
			/*****************************************/	  
			client.loop();
		}
		else
		{
			/*****************************************/
			//Do what you want!!!
			/*****************************************/	  
		}
	}

Node Configuration:

First time after all, open 192.168.4.1:83 (you can change the default port):
sodcoWiFiManager

About

A simple web interface for configuring ESP8266-based devices (after installation)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published