vscphlp_convertEventToJSON

int vscphlp_convertEventToJSON( vscpEvent *pEvent, 
                                char *pBuffer, 
                                size_t len )

Parameters

pEvent

Pointer to event.

pBuffer

Buffer that will receive string result ==

len

Size of string buffer.

Return Value

VSCP_ERROR_SUCCESS is returned on success, VSCP_ERROR_BUFFER_TO_SMALL is returned if the size of the supplied buffer is to small.

Description

Write VSCP event on JSON format to string. Format is specified in vscp.h.

See Also

vscphlp_convertEventExToJSON


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 ""