Syntax
void end();
ContentsIndex
PreviousUpNext
LBTServerClass::end Method
LBTServerClass Class | Example
Syntax
void end();
Description

Closes the corresponding SPP server instance and ends Bluetooth module.

Returns

None.

Example
#include <LBTServer.h>
  
void setup()
{
  Serial.begin(9600);
  bool success = LBTServer.begin();
  if( !success )
  {
      Serial.println("Cannot begin Bluetooth Server successfully");
      // Do nothing.
      while(true);
  }
  else
  {
      Serial.println("Bluetooth Server begins successfully");
  }
  
  LBTServer.end();
}
 
void loop()
{
  
}
File

LBTServer.h

Class