vscphlp_close

int vscphlp_close( long handle )
int pyvscphlp_close( handle )

Parameters

handle

Handle for the communication channel obtained from a call to vscphlp_newsession.

Return Value

VSCP_ERROR_SUCCESS is returned on sucess. VSCP_ERROR_INVALID_HANDLE will be returned if the interface is not initialized.

Description

Close the interface.

Example

if ( VSCP_ERROR_SUCCESS == vscphlp_close( handle1 ) ) {
    prinf("Closed successfully.\n");
 }
print "command: close"
rv = pyvscphlp_close(h1)
if VSCP_ERROR_SUCCESS != rv :
    pyvscphlp_closeSession(h1)
    raise ValueError('Command error: close  Error code=%d' % rv )

See Also

vscphlp_open
vscphlp_openInterface


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