esp8266 arduino code to read a ds18b20 temperature probe and present a json api
Find a file
2016-06-14 03:19:41 -04:00
README.md readme 2016-06-14 03:19:41 -04:00
tempjson.ino first chexin 2016-06-14 03:11:57 -04:00

tempjson

wat

Example of some ESP8266 Arduino code to read a ds18b20 temperature sensor and present the results as a JSON-ish API.

how

open .ino in arduino. edit wifi info and GPIO pin to match the way you wired it up. and upload to your ESP8266.

status screen in serial monitor will show its ip address.

then hit http://[ip]/api and get

{
	temp: [
  	25,
	  77
	]
}

hookup

gnd, 3.3v, d4

license

whatever