Closed rtek1000 closed 1 year ago
why?
the clean way to implement your new device would be to write a new class that inherits from the ds18b20 and brings the additional functionallity of your new sensor.
I can't follow your intention. in the other thread you assumed that you need to change the scratchpad, but it sound more like the serial-id you are after.
does that help? a way to allow changing the Serial-ID during runtime
btw: your PR does nothing. the ID1:7 arguments are not used and the same values (already set in constructor) are written to the scratchpad?!
btw: your PR does nothing. the ID1:7 arguments are not used and the same values (already set in constructor) are written to the scratchpad?!
Yes, I confused the ID (the 48-BIT SERIAL NUMBER, contained in the 64-Bit Lasered ROM Code) with the scratchpad as described in https://github.com/orgua/OneWireHub/issues/124
I'll try to follow instructions from https://github.com/orgua/OneWireHub/discussions/119
I duplicated the constructor as a function, I hope it's enough to update the scratchpad data.
https://github.com/orgua/OneWireHub/issues/124