Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: Bluetooth


This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 1 - Last Post: Nov 2, 2016 8:09 AM Last Post By: Lena Ilicheva
Lena Ilicheva

Posts: 83
Registered: 9/22/06
Bluetooth  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Nov 1, 2016 9:47 PM
How to check on iOS device when the program start that Bluetooth on or off? Thanks.
Lena Ilicheva

Posts: 83
Registered: 9/22/06
Re: Bluetooth  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Nov 2, 2016 8:09 AM   in response to: Lena Ilicheva in response to: Lena Ilicheva
In iPhone5 bluetooth ON. But I got always OFF. Were my mistake?
private:	// User declarations
    TBluetoothLEManager * FBluetoothManagerLE;
 
//***
void __fastcall TForm1::FormActivate(TObject *Sender)
{
 FBluetoothManagerLE = TBluetoothLEManager::Current;
}
//---------------------------------------------------------------------------
void __fastcall TForm1::Button1Click(TObject *Sender)
{
  if(FBluetoothManagerLE->CurrentAdapter->State == TBluetoothAdapterState::Off)
  {
	ShowMessage(L"OFF");
  }
  else
	  {
	   ShowMessage(L"ON");
	  }
 
}
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02