ContentsIndex
Example
LBTServerClass::getHostDeviceInfo Method
#include <LBT.h>
#include <LBTServer.h>
 
void setup()
{
  Serial.begin(9600);
  bool success = LBTServer.begin("LBTServer");
  if( !success )
  {
      Serial.println("Cannot begin Bluetooth Server successfully");
      // Do nothing.
      while(true);
  }
  else
  {
      Serial.println("Bluetooth Server begins successfully");
      LBTDeviceInfo info = {0};
      bool success = LBTServer.getHostDeviceInfo(i, &info);
      if( success )
      {
          Serial.print("Device name:");
          Serial.println(info.name);
      }
  }
}
 
void loop()
{
  
}