LBLEAddress

Represents the device address of a BLE device.

This class represents Bluetooth device addresses. The device address are used to identify and to connect to different BLE devices. Note that not all BLE devices can be connected.

Most of the time you don't need to construct this object by yourself - other classes such as LBLE.getDeivceAddress() returns the address that you need.

This class supports the Printable interface and therefore can be passed to Serial.print, e.g.

// print out address found during LBLECentral.scan().
Serial.print(LBLECentral.getAddress(i));

Constructor

LBLEAddress

Default constructor creates an invalid address.

Syntax

Parameters

n/a

Returns

LBLEAddress object that represents an invalid Bluetooth address.

Methods

toString

Converts the device address to string representation

Syntax

Parameters

n/a

Returns

A String object that is the human-readable string representation of the device address.

Last updated