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

Python Bindings: CP add CMD_STATUS support #116

Closed Stuckya closed 1 year ago

Stuckya commented 1 year ago

I ran into an incompatibility when trying to use some new functionality in the Python bindings: https://github.com/goToMain/libosdp/issues/105

Currently osdp.CMD_STATUS is not exposed to the user of the Python bindings.

Additionally, the evaluated enum value is discarded by pyosdp_make_struct_cmd_dummy.

sidcha commented 1 year ago

@Stuckya You can fix this if you are up for it. If not, I will close this PR and fix it myself in a couple of days.