Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DS18B20 - getAddress gives duplicated HW addresses #258

Open
ssditt opened this issue Dec 28, 2024 · 0 comments
Open

DS18B20 - getAddress gives duplicated HW addresses #258

ssditt opened this issue Dec 28, 2024 · 0 comments

Comments

@ssditt
Copy link

ssditt commented Dec 28, 2024

ESP32 and DallasTemperature.h Ver. 3.9.1
Having 9 sensors DS18B20 on single bus the function getAddress gives 2 addresses of DS18B20 duplicated.
Accessing DS18B20 via addresses is a must to avoid values shift in case of single DS18B20 failure.
Does library support more that 8 sensors? 8 sensors work fine.

  DeviceAddress DSaddress[16];
  int dc = sensors.getDeviceCount();
  for(int i=0; i<dc; i++) {
    sensors.getAddress(DSaddress[i],i);
    Serial.printf("\nDS%d:",i); printAddress(DSaddress[i]);
  }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant