Add capability status #279
-
|
To be able to get PD capability, the app needs to call osdp_cp_get_capability() I suggest to add a Status flag to inform if the capabilities is cached and ready or not. enum cap_flag_e { /* Set capability flag ready after receiving from readers / void osdp_set_cap_flag_ready( void ) void osdp_reset_cap_flag_ready( void ) uint8_t osdp_get_cap_flag_ready( void ) enum cap_flag_e cap_flag; in osdp_cp.c, cp_decode_response API, the end of the REPLY_PDCAP case add |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Thanks for the feedback. The PD capabilities are the second command (after PD ID) that LibOSDP will try to get in it's communication handshake. So any online PD will have it's capabilities pre-fetched. You can subscribe to PD online/offline events using this API and any cap reads with |
Beta Was this translation helpful? Give feedback.
Thanks for the feedback. The PD capabilities are the second command (after PD ID) that LibOSDP will try to get in it's communication handshake. So any online PD will have it's capabilities pre-fetched.
You can subscribe to PD online/offline events using this API and any cap reads with
osdp_cp_get_capability()after the PD becomes online will always be valid.