Code Monkey home page Code Monkey logo

home_automation_esp8266's Introduction

home_automation_ESP8266

This repository serves code for Automation for electrical devices using ESP8266 running as a Webserver and also in Station Mode, WiFi credentials are passed by connecting to it in AP mode.

Flow:

  1. If it is running for the first time, that means nothing is in EEPROM so it starts itself in Access Point Mode.
  2. Get connected to it in AP mode, using Phone or Laptop with the given credentials.
  3. Use the wifisave call to send the WiFi credentials to the ESP8266, it saves that in EEPROM.
  4. It gets connected to the Local Wifi, if credentials are correct and then starts its MDNS server.
  5. Because of MDNS, the device can be reached directly without knowing the IP address of the device in local network by using its mdns name. ex- smarthome.local

For Testing using Postman Use the following exported json:


For testing with mobile end, I am using HTTP Shortcuts https://play.google.com/store/apps/details?id=ch.rmy.android.http_shortcuts and here goes the shortcuts file to get it working instantly.


home_automation_esp8266's People

Contributors

beyondszine avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.