Skip to content

Instantly share code, notes, and snippets.

View scspaeth's full-sized avatar

Stephen Spaeth scspaeth

View GitHub Profile
@sfentress
sfentress / JSONPSensorServer.ino
Created March 19, 2012 20:09
Arduino Server for JSON-P pin values
/*
Web Server returning data as JSON-P, adapted from http://arduino.cc/en/Tutorial/WebServer
A simple web server that returns the value of the analog input pins as
a JSON-P object, using an Arduino Wiznet Ethernet shield.
Circuit:
* Ethernet shield attached to pins 10, 11, 12, 13 (standard configuration)
* Analog inputs attached to pins A0 through A5 (optional)
* Example of reading LM35 on pin A0: