vscphlp_writeVscpDataToString

int vscphlp_writeVscpDataToString( const vscpEvent *pEvent, 
                                       char *pstr, 
                                       size_t len,
                                       int bUseHtmlBreak )

Parameters

pEvent

The event that contains the data to be written

bUseHtmlBreak

Set to true (non zero) to use “\” instead of “\n” as linebreak in string.

Return Value

VSCP_ERROR_SUCCESS is returned on success.

Description

Write VSCP data in readable form to a possibly multi line string.

Example

char dataBuf[80];

if ( VSCP_ERROR_SUCCESS == 
    vscphlp_writeVscpDataToString( pEvent, 
                                    dataBuf, 
                                    sizeof( dataBuf )-1,
                                    0 ) ) {
    printf( "OK vscphlp_writeVscpDataToString \n%s \n", dataBuf );
}
else {
    printf( "\aError: vscphlp_writeVscpDataToString\n");
}

Very Simple Control Protocol
This document is licensed under Creative Commons BY 4.0 and can be freely copied, redistributed, remixed, transformed, built upon as long as you give credits to the author((s).

results matching ""

    No results matching ""