Skip to content
Philippe Coval edited this page Aug 22, 2018 · 14 revisions

EXTRA

EXTRA: ARDUINO AND ESP:

Developing webthing on Arduino APIs or compatible platforms such as Espressif ESP8266 or ESP32

Once your have setup build tool, Developing is pretty straight forward, and it has been covered earlier:

"Smart Orchid Demo" showed a light controller and arduino moisture sensor:

The RGB Lamp code is upstreamed at:

Since I shared a slightly more advanced example that handle ADC port, it was used to monitor the moisture of the ground of a plant.

Hardware side, I used an Arduino mega with Ethernet Shield (same one in this IoTivity 1.2 "arduino switch" demo)

A moisture sensor is just plugged on analog pin (and +5v GND, the digital pin was not used here, but it can be used for other boards without analog like RaspberryPi and use potentiometer as "hardware threshold").

  • TODO: refactor to handle Arduino's WiFi shield too

  • TODO: port iotjs to arduino and compare perfs

For reference code was developed in this repo: (but most of it is upstreamed)

webthing-esp8266-webapp-20180602rzr

EXTRA: ACTIVITY PUB:

For the "Smart Orchid" notification service, it's relying on W3C Activity Pub and Mastodon FLOSS.

To try IoT.js, I made a simple command line client to the mastodon network, it's also compatible with node, check related infos to use and setup account:

Then I implemented a thing (works with node or iotjs):

Note, If you want to use earlier GNU social instance it should work same or be easy to adapt.

  • TODO: Create adapter for gateway

INDEX

Clone this wiki locally