Optimize/consolidate long if (match to single switch / case
De-duplicate some logic into separate functions
Handle auth errors gracefully
Recover from PJ errors
Reduce log clutter from status updates
Reduce net traffic:
-- request static projector information (model/serial no) only once
-- request long-term information (filter hours) every 10 minutes
-- respect protocol Class on polling to reduce unknown command errors
-- ignore certain actions when projector is not in 'On' state
added Toggle to Mute/Freeze/Power
typo on freeze action
Tested for many hours against the JBMIA emulator and a custom emulator.
Many fixes/updates. Should correct #32.
if (match
to singleswitch / case
unknown
command errors -- ignore certain actions when projector is not in 'On' stateTested for many hours against the JBMIA emulator and a custom emulator.