orgua / OneWireHub

OneWire slave device emulator
GNU General Public License v3.0
343 stars 86 forks source link

Alarm Search ROM example #14

Open dvv opened 7 years ago

dvv commented 7 years ago

Hi!

Please consider provide some. A generic one just showing how to properly respond would suffice.

TIA, --Vladimir

orgua commented 7 years ago

there is no function for that so far. but i will leave this open and look into this. feel free to experiment with the code.

orgua commented 7 years ago

so you would need to react to "case 0xEC" issued by the master. the alarm search is like search-rom, but only slaves with triggered alarm will appear. you would have to modify the search()-FN of the hub. it needs a bool-input so that it can decide if it shows all slaves or just the ones with alarms.