Closed nathan-simpson closed 2 years ago
@nathan-simpson, I pushed some changes that would allow you to ignore unknown, unsolicited commands by setting a new flag OSDP_FLAG_IGN_UNSOLICITED
in pd_info (or by using the new osdp_cp_modify_flags()
API). Let me know if it doesn't work as you expect.
This particular device would not respond to
CMD_ID
without first issuingCMD_POLL
AddingCMD_POLL
toOSDP_CP_STATE_INIT
fixed this.The device also replies to
CMD_POLL
withREPLY_ISTATR
on occasion which dropped the connection. Ignoring this reply and logging a warning fixes this.Also fixed incorrect logging of
CMD_CAP
where it should have beenCMD_ID