So:
Need a power on button that queries the unit for the current power state:
Objective:
If unit is on: change button state to "Unit ON". Set next button press
command to: Power Off
If unit is off: change button state to "Unit OFF". Set next button
press command to: Power On
Commands and Feedback:
Query Power state of Arcam: \x21\x01\x00\x01\xF0\x0D
Arcam On: \x21\x01\x00\x00\x01\x01\x0D
Arcam Off:\x21\x01\x00\x00\x01\x00\x0D
Regex: .*\x21\x01\x00\x00\x01(\x00)?(\x01)?\x0D.*
Power On Command: \x21\x01\x08\x02\x10\x7B\x0D
Power Off command: \x21\x01\x08\x02\x10\x7C\x0D
Where do I start?
Any thoughts welcome
Nahshon