vscphlp_writeVscpEventExToString

int vscphlp_writeVscpEventExToString( const vscpEventEx     *pEvent, 
                                        char *pstr, 
                                        size_t len )

Parameters

pEvent

The VSCP event which will be written to the string buffer.

pstr

Pointer to string buffer that will receive result.

len

Size of buffer.

Return Value

VSCP_ERROR_SUCCESS is returned on success.

Description

Write VSCP event ex content to a string.

Example

char eventBuf[128];
if ( VSCP_ERROR_SUCCESS == vscphlp_writeVscpEventExToString( &ex, 
                                           eventBuf, 
                                           sizeof( eventBuf )-1 ) ) {
    printf( "OK vscphlp_writeVscpEventExToString Event = %s\n", eventBuf );    
}
else {
    printf( "\aError: vscphlp_writeVscpEventExToString\n");
}

See Also

vscphlp_writeVscpEventToString


Very Simple Control Protocol
Wed Jul 04 2018 19:49:59 GMT+0000 (UTC)
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 ""