Lines Matching refs:default_conn
48 static struct bt_conn *default_conn; variable
102 if (!default_conn || !remote_ready) { in ble_send_ball()
109 err = bt_gatt_notify(default_conn, local_attr, &data, BALL_INFO_LEN); in ble_send_ball()
120 if (!default_conn || !remote_ready) { in ble_send_lost()
125 err = bt_gatt_notify(default_conn, local_attr, &lost, sizeof(lost)); in ble_send_lost()
142 if (default_conn) { in notify_func()
143 bt_conn_disconnect(default_conn, in notify_func()
245 if (!default_conn) { in connected()
246 default_conn = bt_conn_ref(conn); in connected()
264 if (default_conn) { in disconnected()
265 bt_conn_unref(default_conn); in disconnected()
266 default_conn = NULL; in disconnected()
348 if (default_conn) { in create_conn()
355 BT_LE_CONN_PARAM_DEFAULT, &default_conn); in create_conn()
424 bt_conn_disconnect(default_conn, in cancel_connect()
461 bt_conn_disconnect(default_conn, in ble_timeout()
497 err = bt_gatt_discover(default_conn, &discov_param); in ble_timeout()