The Arduino Nodes to ThingProvider
- Arduino;
- Arduino Ethernet shield;
- Arduino IDE;
- SPI.h,Ethernet.h,aREST.h and avr/wdt.h libraries;
Get information about rain sensor
http://192.168.0.10:98/rainDigitalValue
Json example:
{
"rainDigitalValue": 0,
"id": "1",
"name": "rainAPI",
"hardware": "arduino",
"connected": true
}
http://192.168.0.10:98/rainAnalogicValue
Json example:
{
"rainAnalogicValue": 131,
"id": "1",
"name": "rainAPI",
"hardware": "arduino",
"connected": true
}
Change the LED state
192.168.0.10:98/led
Json example:
{
"return_value":1,
"id":2,
"name":"ledApi",
"hardware":"arduino",
"connected":true
}
Json example:
{
"return_value":0,
"id":2,
"name":"ledApi",
"hardware":"arduino",
"connected":true
}