Syntax
boolean connect(
    const LGATTAddress& deviceAddress
);
ContentsIndex
PreviousUpNext
LGATTClient::connect Method
LGATTClient Class | Example
Syntax
boolean connect(
    const LGATTAddress& deviceAddress
);
Description

This function connects to a Bluetooth 4.0 device.

Parameters
Parameters 
Description 
const LGATTAddress& deviceAddress 
The Bluetooth 4.0 device address to connect. 
Returns

true: Successful. 

false: Failed.

Example
   LGATTAddress address;
   address.addr[0] = 0x0A;
   address.addr[1] = 0x1B;
   address.addr[2] = 0x2C;
   address.addr[3] = 0x3D;
   address.addr[4] = 0x4E;
   address.addr[5] = 0x5G;
   boolean ret = connect(address);
File

LGATTClient.h

Class