Giter Site home page Giter Site logo

firefly's Introduction

Project abandoned, see https://github.com/garhul/aurora instead

firefly

This is a somewhat boilerplate for iot devices based on Nodemcu platform. Provides endpoints for configuring ssid and password and integrates easily with Swarm a centralized IoT device manager.

Access point mode (AP)

When started up the device tries three times by default to connect to the configured ssid. No worries, if there's no ssid configured it will fail and start in AP mode.

In this mode the device will start a network with a preconfigured SSID called "firefly" to which you can connect and access a simple web interface for updating ssid and password.

This mode starts with an MDNS responder so you can access the configuration form by visiting http://config.local

Endpoints for this mode are [GET] http://config.local/ -> home which shows the config form [GET] http://config.local/descriptor -> gets the device json descriptor file

[POST] http://config.local/setup -> sets the password and ssid for the network connection for this mode we require the params pwd and ssid to be sent, possible responses are: 400 for an error when pwd and or ssid are empty 200 for when ssid and pwd where successfuly saved to the device eeprom

[GET] http://config.local/reboot -> which reboots the device

Station mode (ST)

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.