Syntax
boolean begin();
ContentsIndex
PreviousUpNext
LBTClientClass::begin Method
LBTClientClass Class | Example
Syntax
boolean begin();
Description

Initializes Bluetooth module and sets up a Bluetooth SPP client instance.

Returns

true: Successful. 

false: Failed.

Example
#include <LBTClient.h>
  
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");
  }
}
 
void loop()
{
  
}
File

LBTClient.h

Class