Code Monkey home page Code Monkey logo

mywebserverasync's Introduction

myWebServerAsync

myWebServer Async library for esp8266/nodemcu arduino ide.

This is a redesign of my other project: https://github.com/nailbuster/myWebServer

This server uses the Async WEB/TCP library so that it can handle requests quickly and non-blocking. It also includes jquery/bootstrap/css/fontawesome within the library so they are available when booted up.

You can try and flash the bin file to your esp8266 to sample the webserver....

Uses Arduino IDE, ensure latest esp8266 from: https://github.com/esp8266/Arduino

Library requires the use of the following 3rd party libraries to be installed:

Async Web Server https://github.com/me-no-dev/ESPAsyncWebServer

Async TCP Library https://github.com/me-no-dev/ESPAsyncTCP

TimeLib for ntp here: https://github.com/PaulStoffregen/Time

Arduino Json here: https://github.com/bblanchon/ArduinoJson

I'm staring the library as an easy starting/base for working on the esp8266... myWebServer will serve files from the SPIFFs on your device. You should only use this on devices with available spiffs! (4MB on nodemcu for example).

features:

It will try and connect to your AccessPoint, if not config/connect it will auto-start local AP like "myespxxxx". You just connect to that AP with your phone/tablet and it will display Wifi connect configuration. (Uses captive DNS so you can just go to browser and type setup.com or "anything".com). restart nodemcu after you've configured connection....

Afterwards once device connected to your local router/internet. You go to it's local lan IP, or if your system supports mDNS you can type http://"device_name".local on your browser(device name is from setup from above).

Virgin configs will bring up an integrated HTML file browser. You can upload multiple files or drag files to top to allow you webserver to work...(index.html...etc).

supports OTA updating of ESP device via Wifi.

ntp time support will some methods to easily grab current date/time.

see sample htmls in folder for other features....

this is still a WIP but I'll be updating as needed....I have other features I want to implement as well....

***IF you want to see a sample 'complete' project that uses this server with MQTT & ThingSpeak, see my other project at: https://github.com/nailbuster/EspressModuleHM

mywebserverasync's People

Contributors

nailbuster avatar

Watchers

 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.