Hello.
I didn't want to start a new topic.
I am a beginner with Arduino and with ESP8266.
On an arduino-mega with an ETH module I have built a 6xDS18b20 and a DHT21 from which the readings are sent to Thingspeak.com.
I have Virtuino installed on my smartphone and can view 7 temp sensors and 1 humidity sensor.
Now I wanted to do something similar on ESP8266 + 2xDS18b20 onewire on GIPO2.
Below I paste the code I found on the web and reworked for my needs.
Everything works ok but only the measurement from the first sensor, while from the second temperature is sent only once in a while (sometimes every 5 s sometimes every few minutes, and sometimes every 40 min, there is no rule).
ESP8266 I am programming via Arduino IDE
I am very much asking for help.
.
After Coma the reading is from both sensors:
0 Temperature: 19.44
0 Temperature: 19.25
WiFi Client connected
WiFi Client connected
0 Temperature: 19.44
0 Temperature: 19.25
WiFi client connected
WiFi client connected
----
Separated from topic: Temperature reading from ds18b20
by tmf on 01 Mar 2017 19:48
I didn't want to start a new topic.
I am a beginner with Arduino and with ESP8266.
On an arduino-mega with an ETH module I have built a 6xDS18b20 and a DHT21 from which the readings are sent to Thingspeak.com.
I have Virtuino installed on my smartphone and can view 7 temp sensors and 1 humidity sensor.
Now I wanted to do something similar on ESP8266 + 2xDS18b20 onewire on GIPO2.
Below I paste the code I found on the web and reworked for my needs.
Everything works ok but only the measurement from the first sensor, while from the second temperature is sent only once in a while (sometimes every 5 s sometimes every few minutes, and sometimes every 40 min, there is no rule).
ESP8266 I am programming via Arduino IDE
I am very much asking for help.
Code: C / C++
After Coma the reading is from both sensors:
0 Temperature: 19.44
0 Temperature: 19.25
WiFi Client connected
WiFi Client connected
0 Temperature: 19.44
0 Temperature: 19.25
WiFi client connected
WiFi client connected
Moderated By tmf:.3.1.19. Do not post in archived topics if it is another question, especially one different from the person asking. Out of respect for the questioner, create your own topic. You may only add how to solve the problem.
I have separated the topic into a separate thread.
----
Separated from topic: Temperature reading from ds18b20
by tmf on 01 Mar 2017 19:48