doCmdBlockingReceive

c long tttt(void)int doCmdBlockingReceive(vscpEvent *pEvent, uint32_t timeout = 500)

Parameters

pEvent

Pointer to a VSCP event that will receive the received event on success.

timeout

Timeout in milliseconds to wait for data. Default is 500 milliseconds.

Return Value

CANAL_ERROR_SUCCESS on success or an error code on failure. CANAL_ERROR_FIFO_EMPTY is returned if no event was available. CANAL_ERROR_TIMEOUT on timeout. CANAL_ERROR_COMMUNICATION is returned if a socket error is detected.

Description

Receive an event from the remote VSCP server. The receiveloop command must have been issued for this method to work as.


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