/
Debug Print Function
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' |
, multiple selections available,
Related content
Conf File
Conf File
More like this
Debugging a Custom Driver
Debugging a Custom Driver
More like this
Device Create Functions
Device Create Functions
More like this
Obtaining a List of Installed Devices
Obtaining a List of Installed Devices
More like this