goToMain / libosdp

Implementation of IEC 60839-11-5 OSDP (Open Supervised Device Protocol); provides a C library with support for C++, Rust and Python3
https://libosdp.sidcha.dev
Apache License 2.0
130 stars 69 forks source link

reader tamper state #105

Closed s3r4fin closed 1 year ago

s3r4fin commented 1 year ago

The requirement is get current state of tamper and receive event when tamper state changes.

Related LSTAT command & LSTAT response seems dropped on libosdp library.

sidcha commented 1 year ago

@s3r4fin local status reports (CMD_LSTAT, REPLY_LSTATR) are now supported using the PD events API. Look for OSDP_EVENT_STATUS.

s3r4fin commented 1 year ago

Thank you so much! Event works fine! Can CP ask for tamper status on start?

sidcha commented 1 year ago

Can CP ask for tamper status on start?

Didn't think of that use case. Now it can with OSDP_CMD_STATUS :).

s3r4fin commented 1 year ago

Thank you! It works

Stuckya commented 1 year ago

Popping this back onto the radar. This doesn't appear to be working with the Python bindings.

I've opened a PR to address the issue here: https://github.com/goToMain/libosdp/pull/116