Syntax
virtual boolean onConnection(
    const LGATTAddress & addr, 
    boolean connected
);
ContentsIndex
PreviousUpNext
LGATTService::onConnection Method
LGATTService Class
Syntax
virtual boolean onConnection(
    const LGATTAddress & addr, 
    boolean connected
);
Description

This function is called when the status of connections from the central device has changed.

Parameters
Parameters 
Description 
const LGATTAddress & addr 
The address of the central device. Refer to LGATTAddress.
 
boolean connected 
True means a connection is established, false means the central device is disconnected. 
Returns

true: Successful. 

false: Failed.

File

LGATTServer.h

Class