Lines Matching full:peer
98 * Performs three concurrent GATT operations against the specified peer:
104 * If the peer does not support a required service, characteristic, or
105 * descriptor, then the peer lied when it claimed support for the alert
110 blecent_read_write_subscribe(const struct peer *peer) in blecent_read_write_subscribe() argument
118 chr = peer_chr_find_uuid(peer, in blecent_read_write_subscribe()
122 MODLOG_DFLT(ERROR, "Error: Peer doesn't support the Supported New " in blecent_read_write_subscribe()
127 rc = ble_gattc_read(peer->conn_handle, chr->chr.val_handle, in blecent_read_write_subscribe()
138 chr = peer_chr_find_uuid(peer, in blecent_read_write_subscribe()
142 MODLOG_DFLT(ERROR, "Error: Peer doesn't support the Alert " in blecent_read_write_subscribe()
149 rc = ble_gattc_write_flat(peer->conn_handle, chr->chr.val_handle, in blecent_read_write_subscribe()
160 dsc = peer_dsc_find_uuid(peer, in blecent_read_write_subscribe()
165 MODLOG_DFLT(ERROR, "Error: Peer lacks a CCCD for the Unread Alert " in blecent_read_write_subscribe()
172 rc = ble_gattc_write_flat(peer->conn_handle, dsc->dsc.handle, in blecent_read_write_subscribe()
184 ble_gap_terminate(peer->conn_handle, BLE_ERR_REM_USER_CONN_TERM); in blecent_read_write_subscribe()
188 * Called when service discovery of the specified peer has completed.
191 blecent_on_disc_complete(const struct peer *peer, int status, void *arg) in blecent_on_disc_complete() argument
197 "conn_handle=%d\n", status, peer->conn_handle); in blecent_on_disc_complete()
198 ble_gap_terminate(peer->conn_handle, BLE_ERR_REM_USER_CONN_TERM); in blecent_on_disc_complete()
203 * list of services, characteristics, and descriptors that the peer in blecent_on_disc_complete()
207 "conn_handle=%d\n", status, peer->conn_handle); in blecent_on_disc_complete()
209 /* Now perform three concurrent GATT procedures against the peer: read, in blecent_on_disc_complete()
212 blecent_read_write_subscribe(peer); in blecent_on_disc_complete()
375 /* Remember peer. */ in blecent_gap_event()
378 MODLOG_DFLT(ERROR, "Failed to add peer; rc=%d\n", rc); in blecent_gap_event()
404 /* Forget about peer. */ in blecent_gap_event()
426 /* Peer sent us a notification or indication. */ in blecent_gap_event()
447 /* We already have a bond with the peer, but it is attempting to in blecent_gap_event()