DlnUartWrite() Function

The DlnUartWrite() function sends data via UART interface. This function is defined in the dln_uart.h file.

Syntax
C/C++
DLN_RESULT DlnUartWrite(
    HDLN handle, 
    uint8_t port, 
    uint16_t size, 
    uint8_t *buffer
);
Parameters
handle

A handle to the DLN-series adapter.

port

A number of the UART port.

size

The size of the message buffer. This parameter is specified in bytes. The maximum value is DLN_UART_MAX_TRANSFER_SIZE (256 bytes).

buffer

A pointer to an array of unsigned 8-bit integers. This array must be filled with data to be sent during the function execution.

Return Value
DLN_RES_SUCCESS

The operation completed successfully and data has been transmitted.