Debug Print Function

You can use the debug print function to write a diagnostic message from a custom driver to a debug log when debugging is enabled for the custom driver.

To enable debugging, publish a 1 to the MQTT iap/rq/<protocol>/debugMode topic. The IDL internally maintains a flag to save the mode (default value is 0). The mode is also retained across power cycles. To disable debugging, publish 0 to the same topic.

dbg_print

void dbg_print(const char *fmt, ...);

Examples

To enable debugging for custom_driver_1:

mosquitto_pub -t idl/rq/custom_driver_1/debugMode -m '1'

To disable debugging:

mosquitto_pub -t idl/rq/custom_driver_1/debugMode -m '0'