Hi all !

I´ve allready read that there wasn´t any particular way to detect whether a Bluetooth connection is down or not ...
I´ve tried this :
Code:
TBool CBTManager::IsConnected()
    {
	if ( iState == EConnected )
		{
		iReadingSocket.CancelAll();
		Cancel();
		TBuf8<1> aTestBuffer;
		aTestBuffer.Append(_L("T"));
		iReadingSocket.Write(aTestBuffer, iStatus); // Tries to send a T
		User::WaitForRequest(iStatus);
		if ( iStatus == KErrNone )
			{
			ReadingL();
			return (ETrue);
			}
		else
			{
			return (EFalse);
			}
		}
	else
		{
		return (EFalse);
		}
    }
This is used in a typical CActive object (BTManager), which implements the Bluetooth part of my application.
User::WaitForRequest is temporary. I&acute;ll add a state to my state machine later ... But this should allready work !
The problem is that iStatus is allways == KErrNone !! It means, it&acute;s allways possible to write the RSocket even if my connection is down (I shuted down the slave device).

Thanks for your help !