Skip to content

Instantly share code, notes, and snippets.

View scspaeth's full-sized avatar

Stephen Spaeth scspaeth

View GitHub Profile
@scspaeth
scspaeth / JSONPSensorServer.ino
Created September 5, 2012 18:36 — forked from sfentress/JSONPSensorServer.ino
Arduino Server for JSON-P analog pin values A0 - A5
/*
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: