# 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 <a href="#lbleaddress-constructor" id="lbleaddress-constructor"></a>

&#x20;LBLEAddress

{% tabs %}
{% tab title="LBLEAddress" %}
Default constructor creates an invalid address.&#x20;

**Syntax**

**Parameters**

n/a

**Returns**

LBLEAddress object that represents an invalid Bluetooth address.
{% endtab %}
{% endtabs %}

### Methods <a href="#lbleaddress-methods" id="lbleaddress-methods"></a>

&#x20;toString

{% tabs %}
{% tab title=" 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.
{% endtab %}
{% endtabs %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://cavedu.gitbook.io/linkit-7697/linkit-7697-development-guide-for-arduino-ide/developer-guide/using-bluetooth/lble-library-api-guide/lbleaddress.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
