fnDebugMsg()

QUEUE_TRANSFER fnDebugMsg(CHAR *cToSend);

cToSend is the pointer to a NULL-terminated string of characters to be sent to the present debug handle.

The function returns the number of characters which were wuccessfully transferred to the output buffer of the present debug output. The present debug handle is a global QUEUE_HANDLE:
QUEUE_HANDLE DebugHandle = NETWORK_HANDLE;
which defaults to the network handle, which typically sends the string to a connected TELNET session - the actual details are controlled by user code in the function
extern QUEUE_TRANSFER fnNetworkTx(unsigned char *output_buffer, QUEUE_TRANSFER nr_of_bytes);

When the handle is set to a UART or USB handle (or possibly other types too) the output will then be sent to the corresponding physical interface.

Examples

fnDebugMsg("Hello, world...\r\n");

Related functions

fnDebugDec();
fnDebugHex();




Please use the µTasker forum to ask specific questions.