Hi,
I am currently developing OSDP product using your library. I faced the following issues:
1- I was unable to pass a class object to the PD callback, I noticed that instead of passing args you are just passing _ctx which doesn't make any sense to me. That is why i added the args in the set_command_callback of PD.
2- It is enough to declare _ctx = nullptr at Common class because each derived class would call the constructor of Common and it will initialize the _ctx to nullptr.
3- Exposing ISTAT and OSTAT to application level. I faced a situation where ACU need to know the default state of the PD.
Please have a look to my changes i am waiting for this to be merged so that we can utilize this code in our company.
Hi, I am currently developing OSDP product using your library. I faced the following issues: 1- I was unable to pass a class object to the PD callback, I noticed that instead of passing args you are just passing _ctx which doesn't make any sense to me. That is why i added the args in the set_command_callback of PD. 2- It is enough to declare _ctx = nullptr at Common class because each derived class would call the constructor of Common and it will initialize the _ctx to nullptr. 3- Exposing ISTAT and OSTAT to application level. I faced a situation where ACU need to know the default state of the PD.
Please have a look to my changes i am waiting for this to be merged so that we can utilize this code in our company.
Best regards, Mehmood Malik.