Processing code for Ardunio to create a web server that reads from a 1-wire temperature sensor and outputs xml.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
ArduinoWebServerTemperatureSensor
Documents
Libraries
README.md

README.md

Arduino Web Server Temperature Sensor

A web server that will read the values of a 1-Wire temperature sensor and output XML, JSON and JSONP with temperature in Celcius and Fahrenheit.

XML
<?xml version=\"1.0\"?>
<xml>
<temperature>
<celcius>0</celcius>
<fahrenheit>32</fahrenheit>
</temperature>
</xml>
  • Sample XML response with error:
XML
<?xml version=\"1.0\"?>
<xml>
<temperature>
ERROR
</temperature>
</xml>
{
  "temperature": {
    "celcius": 12.50,
    "fahrenheit": 54.50
  }
}
  • Sample JSON response with error:
{
  "error": "error"
}
MyCallback({
  "temperature": {
    "celcius": 12.50,
    "fahrenheit": 54.50
  }
});
  • Sample JSON response with error:
MyCallback({
  "error": "error"
});