1 /* 2 * Copyright (c) 2021 Xiaomi Corporation 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 8 struct bt_mesh_gatt_cli { 9 struct bt_uuid_16 srv_uuid; 10 struct bt_uuid_16 data_in_uuid; 11 struct bt_uuid_16 data_out_uuid; 12 struct bt_uuid_16 data_out_cccd_uuid; 13 14 void (*connected)(struct bt_conn *conn, void *user_data); 15 void (*link_open)(struct bt_conn *conn); 16 void (*disconnected)(struct bt_conn *conn); 17 }; 18 19 int bt_mesh_gatt_cli_connect(const bt_addr_le_t *addr, 20 const struct bt_mesh_gatt_cli *gatt, 21 void *user_data); 22 23 int bt_mesh_gatt_send(struct bt_conn *conn, 24 const void *data, uint16_t len, 25 bt_gatt_complete_func_t end, void *user_data); 26 27 void bt_mesh_gatt_client_init(void); 28 29 void bt_mesh_gatt_client_deinit(void); 30