Moderator: igrr
...
#include <OneWire.h>
#include <DallasTemperature.h>
...
#define ONE_WIRE_BUS 5
...
OneWire oneWire(ONE_WIRE_BUS);
DallasTemperature sensors(&oneWire);
float temp;
...
void setup(void)
{
...
sensors.begin();
...
}
...
void uploadTemp(void)
{
sensors.requestTemperatures();
temp = sensors.getTempCByIndex(0));
...
// Upload code
....
}
OliverNZ wrote:Not using the DS18B20 in parasitic mode. Running it at 3.3V though. And readings are 3min/180sec apart. So I shouldn't have any issues with that. Also when I do the "on-demand" http call (instead of the regular HTTP post to a server) all is fine and I get the correct temp back.
"on-demand" http call (instead of the regular HTTP post to a server)
Could you elaborate on this a bit , I,ve only been playing with HTTP for about 2 weeks.