** Is your feature request related to a problem? Please describe. **
Currently, all OSDP protocol constants (timeouts, retry limits, etc.) are hardcoded in
src/osdp_config.h.in
This makes it difficult for users to tune OSDP behavior for their specific use cases without modifying source files. For example, users who need faster response times for low-latency applications or those testing with reduced retry timeouts must edit the source code directly, which complicates updates and maintenance.
** Describe the solution you'd like **
Make all OSDP configuration constants configurable (ones which are not enforced by OSDP specification) at build time through both CMake and the lean build system (configure.sh), while maintaining backward compatibility with existing builds.
The solution should:
Allow users to configure values via CMake command-line arguments (e.g., -DOSDP_ONLINE_RETRY_WAIT_MAX_MS=3000)
Allow users to configure values via configure.sh options (e.g., --osdp-online-retry-wait-max-ms 3000)
Maintain all current default values for backward compatibility
** Is your feature request related to a problem? Please describe. **
Currently, all OSDP protocol constants (timeouts, retry limits, etc.) are hardcoded in
src/osdp_config.h.in
This makes it difficult for users to tune OSDP behavior for their specific use cases without modifying source files. For example, users who need faster response times for low-latency applications or those testing with reduced retry timeouts must edit the source code directly, which complicates updates and maintenance.
** Describe the solution you'd like **
Make all OSDP configuration constants configurable (ones which are not enforced by OSDP specification) at build time through both CMake and the lean build system (configure.sh), while maintaining backward compatibility with existing builds.
The solution should:
Allow users to configure values via CMake command-line arguments (e.g., -DOSDP_ONLINE_RETRY_WAIT_MAX_MS=3000)
Allow users to configure values via configure.sh options (e.g., --osdp-online-retry-wait-max-ms 3000)
Maintain all current default values for backward compatibility