Syntax
boolean setupNotification(
    boolean enableOrNot, 
    const LGATTUUID& serviceUUID, 
    boolean isPrimary, 
    const LGATTUUID& characteristicUUID
);
ContentsIndex
PreviousUpNext
LGATTClient::setupNotification Method
LGATTClient Class | Example
Syntax
boolean setupNotification(
    boolean enableOrNot, 
    const LGATTUUID& serviceUUID, 
    boolean isPrimary, 
    const LGATTUUID& characteristicUUID
);
Description

This function enables or disables notifications.

Parameters
Parameters 
Description 
const LGATTUUID& serviceUUID 
The UUID of the service provided by a Bluetooth 4.0 devices.
 
boolean isPrimary 
Specifies if this service is primary.
 
const LGATTUUID& characteristicUUID 
The UUID of characteristic. 
enable 
If return is true, enable the notification; or disable the notification if return is false.
 
Returns

true: Successful. 

false: Failed.

Example
   None
File

LGATTClient.h

Class