{"action":"created","issue":{"url":"https://api.github.com/repos/nodemcu/nodemcu-firmware/issues/323","labels_url":"https://api.github.com/repos/nodemcu/nodemcu-firmware/issues/323/labels{/name}","comments_url":"https://api.github.com/repos/nodemcu/nodemcu-firmware/issues/323/comments","events_url":"https://api.github.com/repos/nodemcu/nodemcu-firmware/issues/323/events","html_url":"https://github.com/nodemcu/nodemcu-firmware/issues/323","id":65644779,"number":323,"title":"ds18b20 unknown condition....","user":{"login":"gorec2005","id":1850296,"avatar_url":"https://avatars.githubusercontent.com/u/1850296?v=3","gravatar_id":"","url":"https://api.github.com/users/gorec2005","html_url":"https://github.com/gorec2005","followers_url":"https://api.github.com/users/gorec2005/followers","following_url":"https://api.github.com/users/gorec2005/following{/other_user}","gists_url":"https://api.github.com/users/gorec2005/gists{/gist_id}","starred_url":"https://api.github.com/users/gorec2005/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gorec2005/subscriptions","organizations_url":"https://api.github.com/users/gorec2005/orgs","repos_url":"https://api.github.com/users/gorec2005/repos","events_url":"https://api.github.com/users/gorec2005/events{/privacy}","received_events_url":"https://api.github.com/users/gorec2005/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-04-01T09:34:35Z","updated_at":"2015-09-21T01:59:59Z","closed_at":null,"body":"ds18B20 connected to gpio1(pin 10)...\r\n\r\nif I try to read the raw data from ds is always returned one result (85')\r\n> \r\now.setup(10);a=ow.search(10);ow.select(10,a);ow.write(10,0x44,1);ow.reset(10);ow.select(10,a);ow.write(10,0xBE,1);d=nil;for i=1,8 do print(ow.read(10)); end\r\n>\r\n80\r\n5\r\n75\r\n70\r\n127\r\n255\r\n12\r\n16\r\n> \r\n> \r\n\r\nand if i use ds18b20 module it read (85') too\r\n> t=require(\"ds18b20\");t.setup(10);print(\"Temperature: \"..t.read()..\"'C\");t=nil;ds18b20=nil;package.loaded[\"ds18b20\"]=nil\r\nTemperature: 85'C\r\n\r\nbut second measurement so good...\r\n> t=require(\"ds18b20\");t.setup(10);print(\"Temperature: \"..t.read()..\"'C\");t=nil;ds18b20=nil;package.loaded[\"ds18b20\"]=nil\r\nTemperature: 35'C\r\n>\r\n\r\nit's a bug or it's a feature? :-)"},"comment":{"url":"https://api.github.com/repos/nodemcu/nodemcu-firmware/issues/comments/141855304","html_url":"https://github.com/nodemcu/nodemcu-firmware/issues/323#issuecomment-141855304","issue_url":"https://api.github.com/repos/nodemcu/nodemcu-firmware/issues/323","id":141855304,"user":{"login":"vlasov01","id":1688219,"avatar_url":"https://avatars.githubusercontent.com/u/1688219?v=3","gravatar_id":"","url":"https://api.github.com/users/vlasov01","html_url":"https://github.com/vlasov01","followers_url":"https://api.github.com/users/vlasov01/followers","following_url":"https://api.github.com/users/vlasov01/following{/other_user}","gists_url":"https://api.github.com/users/vlasov01/gists{/gist_id}","starred_url":"https://api.github.com/users/vlasov01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vlasov01/subscriptions","organizations_url":"https://api.github.com/users/vlasov01/orgs","repos_url":"https://api.github.com/users/vlasov01/repos","events_url":"https://api.github.com/users/vlasov01/events{/privacy}","received_events_url":"https://api.github.com/users/vlasov01/received_events","type":"User","site_admin":false},"created_at":"2015-09-21T01:59:59Z","updated_at":"2015-09-21T01:59:59Z","body":"I have the same issue (NodeMCU 0.9.6). Thank you MacDada for the workaround!\r\n\r\n> dofile(\"main.lua\");\r\nTotal DS18B20, sensors: 0\r\n85\r\nMeasured temp: 85\r\nMeasuring temp error, trying again...\r\nTotal DS18B20, sensors: 1\r\n85\r\n> dofile(\"main.lua\");\r\nTotal DS18B20, sensors: 0\r\n25.5\r\nMeasured temp: 25.5\r\n"}}