Hey.
I'm messing around with an esp32, trying to program it to control my beer brewing machine.
It's got two ds18b20 sensors - however it seems there is some issues with the onewire library when using the esp32 - the "wireobject.search" method doesn't report the sensors the way it should, so I can't use it to make a count of devices on the onewire bus.
I did find a website that had a solution which required making changes to the onewire.h and .cpp files.
So I'm wondering - is there a way for me to overwrite the class methods in those files from another file - leaving the originals intact?
If these files are in your "libraries" folder, the best you can do is copy the original folder and rename it and then make your changes there. You will have to rename the original folder something else since the include file search algorithm first looks for a matching directory name. This means if the .h file is "OneWire.h", it will find
'libraries\OneWire\OneWire.h' and use that before 'libraries\OneWire-original\OneWire.h"
Definitely a kludge, but it worked for me with the i2c library.