-->
Page 2 of 2

Re: DS18B20 and www server

PostPosted: Wed Dec 10, 2014 5:46 am
by techfreakpl
sancho wrote:Please, take a look at a small correction I made within the post http://www.esp8266.com/viewtopic.php?f=19&t=752.
Your script will fail for negative temperatures.


thx i will try :)
alonewolfx2 wrote:

Yes, only one hour. On lipo 3,9V 600mha baterry life is one day.

Re: DS18B20 and www server

PostPosted: Thu Dec 25, 2014 2:36 pm
by brutzler
Hi,

thx for the script.
Tested it with my ESP8266-01.
Changed the OW-Pin to 4 / GPIO2 (New Table for 0.9.4 build 20141222)
Because of getting a coherent value from the DS18B20, this should be OK.

But I have problems with the integrated web-server.
I only see the first line in the browser -> conn:send("<h1> DS18B20</h1>")
The line with the temperature is not sent. (checked the traffic with wireshark)
Masking out the first line, the ESP sends me the second line with the right temperature. Looks like he can send only one telegram???

Re: DS18B20 and www server

PostPosted: Thu Dec 25, 2014 5:58 pm
by jankop
I have problem with a server too, try older Lua NodeMcu 0.9.2 build 20141219. I think it's better.

Re: DS18B20 and www server

PostPosted: Sun Jan 18, 2015 2:18 pm
by rajbadri
server runs fine and i am able to view in chrome browser but in safari the page does not open.