ContentsIndex
Example
LBTClientClass::connected Method
#include <LBT.h>
#include <LBTClient.h>
     
LBTDeviceInfo info = {0};
 
void setup()
{
  Serial.begin(9600);
  bool success = LBTClient.begin();
  if( !success )
  {
      Serial.println("Cannot begin Bluetooth Client successfully");
      // Do nothing.
      while(true);
  }
  else
  {
      Serial.println("Bluetooth Client begins successfully");
      // start scan, at most scan 15 seconds
      int num = LBTClient.scan(15);
 
      if(num > 0)
      {
          if( LBTClient.getDeviceInfo(0, &info) )
          {
              Serial.println("Get device info of interested server");
          }
          else
          {
              Serial.println("Device index not correct");
              // Do nothing.
              while(true);
          }
      }
  }
}