Skip to content
This repository was archived by the owner on Apr 13, 2018. It is now read-only.
fiz1962 edited this page Apr 13, 2018 · 4 revisions

THIS IS DISCONTINUED. I would recommend switching to https://github.com/mozilla-iot/thing-url-adapter.

Welcome to the ESP-adapter wiki!

Adapter for use in conjunction with any device that can process and serve json data over the internet, and the IOT gateway from https://github.com/mozilla-iot. Original code from the http-on-off-adapter (https://github.com/mozilla-iot/http-on-off-adapter).

The configuration of the device is read on init of the adapter by a json response from a web server. It has been tested using an ESP8266 wifi device and also php code from an Apache web server running on Fedora Core 27.

When the "+" button on the Mozilla-iot main page is pressed, the adapter scans a range of IP addresses defined in package.json for a Mozilla-iot "Thing" json response from http://IPAddress/thing. This json data is used to configure that particular device. Likewise data is sent to the device using http://IPAddress/thing/set?{name}={value}. The device can accept that value or override it and respond with the value(s) of any properties it sees fit.

Clone this wiki locally