RFID_STATUS WINAPI RFID_GetLLRPConnectionConfigW ( RFID_HANDLE32  readerManagementHandle,
LPLLRP_CONNECTION_CONFIGW  lpLLRPConnectionConfig 
)

This function gets the LLRP Connection Configuration from the reader.

Parameters:
[in] readerManagementHandle 
Handle returned by RFID_Login.
[out] lpLLRPConnectionConfig 
Pointer to LLRP_CONNECTION_CONFIG
Returns:
If the function succeeds the return value is RFID_API_SUCCESS. If the function fails the return value is one of the following:
  • RFID_API_INVALID_HANDLE Handle provided is invalid
  • RFID_READER_FUNCTION_UNSUPPORTED Unsupported on XR and Device-based readers like MC
Remarks:
See also:
RFID_SetLLRPConnectionConfig, RFID_InitiateLLRPConnectionFromReader, RFID_DisconnectLLRPConnectionFromReader
Remarks:
Example: See
RFID_HANDLE32 readerManagementHandle;
RFID_STATUS rfidStatus = RFID_API_SUCCESS;
LOGIN_INFO loginInfo;
READER_TYPE readerType = FX;
BOOL secureMode=0;
UPDATE_STATUS updateStatus;

_tcscpy(loginInfo.userName, TEXT("admin"));
_tcscpy(loginInfo.password, TEXT("change"));
_tcscpy(loginInfo.hostName, TEXT("157.235.208.51"));
loginInfo.forceLogin = true;

if(RFID_API_SUCCESS == RFID_Login(&readerManagementHandle, &loginInfo, readerType, secureMode, NULL))
{
        LLRP_CONNECTION_CONFIG llrpConnectionConfig;
        if(RFID_API_SUCCESS == RFID_GetLLRPConnectionConfig(readerManagementHandle, &llrpConnectionConfig))
        {
                printf("\n Reader is in %s mode", llrpConnectionConfig.isClient ? "Client" : "Server" );
                if(!llrpConnectionConfig.isClient)
                {
                        // changing to client mode
                        llrpConnectionConfig.isClient = true;
                        _stprintf(llrpConnectionConfig.hostServerIP, TEXT("157.235.207.133"));
                        if(RFID_API_SUCCESS == RFID_SetLLRPConnectionConfig(readerManagementHandle, &llrpConnectionConfig))
                        {
                                        printf("\n Reader changed to Client mode");
                        }
                        else
                                llrpConnectionConfig.isClient = false;
                }
                if(llrpConnectionConfig.isClient = true)
                {
                        // attempt to initiate connection
                        if(RFID_API_SUCCESS == RFID_InitiateLLRPConnectionFromReader(readerManagementHandle, NULL))
                        {
                                // can do RFID_AcceptConnection and call all Generic interface APIs
                                // finally RFID_DisconnectLLRPConnectionFromReader and RFID_Disconnect
                                RFID_DisconnectLLRPConnectionFromReader(readerManagementHandle);
                        }
                        else
                        {
                                printf("\n Could not Initiate LLRPConnection From Reader");
                        }
                }

        }
        RFID_Logout(readerManagementHandle); // Logout so that Dll is cleaned up
}


Generated on Fri Mar 4 02:25:32 2016 for RFIDAPI3 1.1 C API Documentation by  doxygen 1.5.6