Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mangoweb/http-api-server-for-arduino-ethernet-shield
https://github.com/mangoweb/http-api-server-for-arduino-ethernet-shield
Last synced: 14 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/mangoweb/http-api-server-for-arduino-ethernet-shield
- Owner: manGoweb
- Created: 2013-01-05T15:15:14.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2013-01-06T16:19:39.000Z (almost 12 years ago)
- Last Synced: 2023-04-05T13:09:21.742Z (over 1 year ago)
- Language: Arduino
- Size: 117 KB
- Stars: 7
- Watchers: 12
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
HTTP-API-server-for-Arduino-Ethernet-Shield
===========================================Web Server
A simple web server that shows the value of the analog input pins.
using an Arduino Wiznet Ethernet shield.The server accepts two HTTP RPC calls:
/ - returns JSON object with the current pin values
/set?pin2=1;pin9=0 - sets pin 2 to HIGH, pin 9 to LOW
/set?pin2=1;pin9=0;pin53=2 - sets pin 2 to HIGH, pin 9 to LOW
and pin 53 to blinking mode
/set?pin3=100 - switches pin 3 to opposite level for 100ms
(requests are not processed during that time)Circuit:
* Ethernet shield attached to pins 10, 11, 12, 13
* Set of output pins connected - as defined in the pins[] arrayTo have the sketch advertise itself using Bonjour, clone
git://github.com/neophob/EthernetBonjour.git
in your ~/sketchbook/libraries/ directory. Alternatively, simply
remove all EthernetBonjour references in the sketch and all the rest
should still work.loosely based on Web Server example by David A. Mellis and Tom Ioge
created 5 Jan 2013 by Petr BaudisCopyright (c) 2012 Fuerte International. All rights reserved.
http://www.fuerteint.com/