virtual boolean onConnection( const LGATTAddress & addr, boolean connected );
virtual boolean onConnection( const LGATTAddress & addr, boolean connected );
This function is called when the status of connections from the central device has changed.
|
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. |
true: Successful.
false: Failed.
LGATTServer.h