Skip to content

Single sensor not reading with V3.3.2 Arduino and any version > 3.9.0 #286

@AcuarioCat

Description

@AcuarioCat

I don´t know if this is related to the ESP32 version or the temperature library but..

Any version later than V3.9.0 of DallasTemperature returns -128 when reading the DS18B20

My code was working fine until I updated the library. I have tried several versions but any higher than 3.9.0 have the same result.
Reverting to the 3.9.0 version and everything works again.

I´m running V3.3.2 of the Arduino ESP32 code. I haven´t tried on any earlier versions.
Other than changing the version of the library nothing else on my project changed between a working and non-working version.

My code is very simple for the test, in setup:
`
#define ONE_WIRE_BUS 14
OneWire oneWire(ONE_WIRE_BUS);
DallasTemperature sensors(&oneWire);

void setup(){
Serial.begin(115200);

float temperature;

sensors.requestTemperatures();
vTaskDelay(1500);

temperature = sensors.getTempCByIndex(0);
Serial.printf("Startup Celsius temperature:%0.2f\n", temperature);

etc..

`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions