Exemple #1
0
/*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Description:
	This function is to conduct some initialization operations.
Arguments:
Return:
	BOOL
---------------------------------------------------------------------------*/
BOOL InitBlueSoleilForSample()
{
    if (BTSDK_TRUE != Btsdk_IsServerConnected()) /* not connected with BlueSoleil */
    {
        if (BTSDK_OK == Btsdk_Init())
        {
            printf("Connected to BlueSoleil Server successfully.\n\n");
        }
        else
        {
            printf("Fail to connect to BlueSoleil Server.\n\n");
            return FALSE;
        }
    }
    return TRUE;
}
bool QBtLocalDevicePrivate::IsBluetoothSupported()
{
    return Btsdk_IsServerConnected();
}