Giter VIP home page Giter VIP logo

esp-adapter's Introduction

Adapter for use with devices such as the ESP8266, Arduino, laptops, etc and the Mozilla-IOT gateway from https://github.com/mozilla-iot. Based on code from the http-on-off-adapter (https://github.com/mozilla-iot/http-on-off-adapter).

Example Arduino/esp8266 sketch and example php code is at https://github.com/fiz1962/ESP-adapter.

The WoT API can be found at https://iot.mozilla.org/wot/.

When the adapter pairing is performed ("+" button on main page), this adapter scans a range of IP addresses defined in package.json for ESP8266/nodeMCU/Arduino/laptops/desktops/etc that respond with json data defining an IOT device. An ESP8266/Arduino example sketch and PHP code is included. The name, id and description returned in the json data should be unique for each device.

To use: Put files in the "gateway/src/addons/esp-adapter" folder. Edit the range of IP addresses in package.json. Edit the user/password for logging in to the devices. Power up all the ESP devices. Start the gateway. Login to the gateway (ex https://localhost:4443). Enable the adapter by clicking the "3 bars" in the top/left corner of the web browser. Click "Settings", then "Addons". You should see "esp-adapter" listed, click "Enable" if not already enabled. Return to the main page. Click the "+" in the bottom right of the web browser to start pairing. Save any devices.

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.