const char * vscphlp_getDriverInfo( long handle, 
                                    char *pInfo, 
                                    size_t len )
(rv,strdriverinfo) = vscphlp_getDriverInfo( handle )



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

pInfo /c/c++)

A pointer to string with XML formatted information about the driver in use. This information (if available) can be used to help a user to configure the driver among other things.

len (c/c++)

Size of supplied buffer.

Return Value


Return VSCP_ERROR_SUCCESS on success, VSCP_ERROR_ERROR on failure. If the connection is closed VSCP_ERROR_CONNECTION is returned. VSCP_ERROR_PARAMETER is returned if called while in a receive loop.


A touple consisting of the the return vale and the driver info string is returned. For return codes see c/c++ return value.


Get driver information. A buffer with size enough to hold the XML data must be supplied. For Python 32000 byte is used.


// Get driver info
if ( VSCP_ERROR_SUCCESS == (rv = vscphlp_getDriverInfo( handle2, buf, sizeof(buf) ) ) ) {
    printf( "Command success: vscphlp_getDriverInfo on channel 2\n" );
    printf( "Driver info = \"%s\"\n", buf );
else {
    printf("\aCommand error: vscphlp_getDriverInfo on channel 2  Error code=%d\n", rv);
print "Get driver info string"
(rv,strdriverinfo) = pyvscphlp_getDriverInfo( h1 )
    raise ValueError('Command error: pyvscphlp_getDriverInfo  Error code=%d' % rv )
print "Driver info string = %s" % strdriverinfo

Very Simple Control Protocol
Fri Jan 11 2019 17:30:44 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 ""