LBLE

LBLE is a singleton object that represents the underlying Bluetooth subsystem. It's main purpose is to initialize the Bluetooth subsystem. You don't have to instantiate it - simply include LBLE.h and start using it. The example code below initializes the BT subsys:

#include <LBLE.h>
void setup(){
    LBLE.begin();
    while(!LBLE.ready()){delay(10);}
 
	// now we can call other LBLE library APIs.
}

You must initialize the BT subsystem before using any other classes, objects and methods in LBLE library.

Methods

begin()

ready()

getDeviceAddress()

Initializes the Bluetooth subsystem.

This method should be the called first prior to using other BLE APIs. After calling begin() you need to call ready(), and check if the subsystem is ready to use.

Syntax

Parameters

n/a

Returns

1 if the initialization starts. 0 if the Bluetooth subsystem cannot be initialized.

Last updated