Modules
Apple Notification Center Service (ANCS)
BLE Services

Definitions and prototypes for the ANCS interface. More...

Collaboration diagram for Apple Notification Center Service (ANCS):

## Modules
| Defines
| Enumerations
| Structures
| Typedefs
| Functions

## Detailed Description

Definitions and prototypes for the ANCS interface.

ANCS provides a way for BLE devices to receive IOS mobile phone notifications. The service consists of three eigenvalues, including notification source, data source, control point.

The application needs to call ancs_c_client_init() to initialize, and then use ancs_c_discovery_service() to discover ANCS-related services on IOS devices. After discovery, ancs_c_on_browse_svc_evt function is called to parse and save the handle corresponding to each service. These handles are used for data transmission.

Secondly, use ancs_c_ntf_source_notify_set() and ancs_c_data_source_notify_set() to enable notification source & data source's CCD. The IOS notification is then sent to the BLE device side immediately.

Finally, the application can use ancs_decode_notification_source() and ancs_decode_data_source() to parse the ANCS message and ancs_c_write_control_point() to command the control point. For specific commands, please refer to the ANCS protocol specification.