The nimble host executes this callback when a GAP event occurs. The application associates a GAP event callback with each connection that is established. blecent uses the same callback for all connections.
Initiates the GAP general discovery procedure.
Called when service discovery of the specified peer has completed.
Connects to the sender of the specified advertisement of it looks interesting. A device is "interesting" if it advertises connectability and support for the Alert Notification service.
Performs 3 operations on the remote GATT server. 1. Subscribes to a characteristic by writing 0x10 to it's CCCD. 2. Writes to the characteristic and expect a notification from remote. 3. Reads the characteristic and expect to get the recently written information.
Performs three GATT operations against the specified peer: 1. Reads the ANS Supported New Alert Category characteristic. 2. After read is completed, writes the ANS Alert Notification Control Point characteristic. 3. After write is completed, subscribes to notifications for the ANS Unread Alert Status characteristic. If the peer does not support a required service, characteristic, or descriptor, then the peer lied when it claimed support for the alert notification service! When this happens, or if a GATT procedure fails, this function immediately terminates the connection.
Application Callback. Called when the custom subscribable chatacteristic in the remote GATT server is read. Expect to get the recently written data.
Application callback. Called when the attempt to subscribe to notifications for the ANS Unread Alert Status characteristic has completed.
Application Callback. Called when the custom subscribable characteristic in the remote GATT server is written to. Client has previously subscribed to this characeteristic, so expect a notification from the server.
Application callback. Called when the write to the ANS Alert Notification Control Point characteristic has completed.
Application callback. Called when the read of the ANS Supported New Alert Category characteristic has completed.
Application Callback. Called when the custom subscribable characteristic is subscribed to.