Syntax
virtual boolean onRead(
    LGATTReadRequest & request
);
ContentsIndex
PreviousUpNext
LGATTService::onRead Method
LGATTService Class
Syntax
virtual boolean onRead(
    LGATTReadRequest & request
);
Description

You need to override this method to handle a read request coming from central device. Always respond to the request by calling request.ackOk() or request.ackFail() before this function returns. Otherwise it will lead to an undefined behavior.

Parameters
Parameters 
Description 
LGATTReadRequest & request 
An object representing the read request. Refer to LGATTReadRequest
Returns

true: Successful. 

false: Failed.

File

LGATTServer.h

Class