/ThingProviderNodes

The Arduino Nodes to ThingProvider

Primary LanguageC++GNU General Public License v3.0GPL-3.0

ThingProviderNodes

The Arduino Nodes to ThingProvider

Codacy Badge

Build Status Build Status

alt text

Setup

  • Arduino;
  • Arduino Ethernet shield;
  • Arduino IDE;
  • SPI.h,Ethernet.h,aREST.h and avr/wdt.h libraries;

Rain Node

Get information about rain sensor

alt text alt text

GET

http://192.168.0.10:98/rainDigitalValue alt text

Json example:

{
   "rainDigitalValue": 0,
   "id": "1",
   "name": "rainAPI",
   "hardware": "arduino",
   "connected": true
}

GET

http://192.168.0.10:98/rainAnalogicValue alt text

Json example:

{
  "rainAnalogicValue": 131,
  "id": "1",
  "name": "rainAPI",
  "hardware": "arduino",
  "connected": true
}

Led Node

Change the LED state

alt text alt text

POST

192.168.0.10:98/led

On

alt text

Json example:

{
   "return_value":1,
   "id":2,
   "name":"ledApi",
   "hardware":"arduino",
   "connected":true
}

Off

alt text

Json example:

{
   "return_value":0,
   "id":2,
   "name":"ledApi",
   "hardware":"arduino",
   "connected":true
}