tkl_output | Log Output
The tkl_output.c
file provides log output functionality, allowing for the output, closing, and opening of logs within the Tuya Smart system (TuyaOS) environment. This file is automatically generated to enable developers to add their own implementation code within specific areas.
API Descriptionâ
tkl_log_outputâ
void tkl_log_output(const char *format, ...);
Functionalityâ
Outputs log information.
Parametersâ
format
: A pointer to a format string, followed by a variable number of arguments.
Return Valueâ
No return value.
tkl_log_closeâ
OPERATE_RET tkl_log_close(void);
Functionalityâ
Closes the log port.
Parametersâ
No parameters.
Return Valueâ
A return value of OPRT_OK
indicates that the log port was successfully closed. Other values indicate failure, see tuya_error_code.h
for specific error codes.
tkl_log_openâ
OPERATE_RET tkl_log_open(void);
Functionalityâ
Opens the log port.
Parametersâ
No parameters.
Return Valueâ
A return value of OPRT_OK
indicates that the log port was successfully opened. Other values indicate failure, see tuya_error_code.h
for specific error codes.