Lines Matching +full:data +full:- +full:role

5  * SPDX-License-Identifier: Apache-2.0
45 const void *data, uint16_t len,
51 static void proxy_msg_recv(struct bt_mesh_proxy_role *role) in proxy_msg_recv() argument
53 switch (role->msg_type) { in proxy_msg_recv()
56 bt_mesh_pb_gatt_recv(role->conn, &role->buf); in proxy_msg_recv()
60 LOG_WRN("Unhandled Message Type 0x%02x", role->msg_type); in proxy_msg_recv()
69 const uint8_t *data = buf; in gatt_recv() local
71 if (cli->conn != conn) { in gatt_recv()
72 LOG_ERR("No PB-GATT Client found"); in gatt_recv()
73 return -ENOTCONN; in gatt_recv()
78 return -EINVAL; in gatt_recv()
81 if (PDU_TYPE(data) != BT_MESH_PROXY_PROV) { in gatt_recv()
83 return -EINVAL; in gatt_recv()
95 if (err || info.role != BT_CONN_ROLE_PERIPHERAL || !service_registered || in gatt_connected()
111 if (err || info.role != BT_CONN_ROLE_PERIPHERAL || !service_registered || in gatt_disconnected()
112 info.id != BT_ID_DEFAULT || !cli || cli->conn != conn) { in gatt_disconnected()
134 if (cli->conn != conn) { in prov_ccc_write()
135 LOG_ERR("No PB-GATT Client found"); in prov_ccc_write()
136 return -ENOTCONN; in prov_ccc_write()
177 return -ENOTSUP; in bt_mesh_pb_gatt_srv_enable()
181 return -EBUSY; in bt_mesh_pb_gatt_srv_enable()
196 return -EALREADY; in bt_mesh_pb_gatt_srv_disable()
225 memcpy(prov_svc_data + 2, prov->uuid, 16); in gatt_prov_adv_create()
226 sys_put_be16(prov->oob_info, prov_svc_data + 18); in gatt_prov_adv_create()
228 if (!prov->uri) { in gatt_prov_adv_create()
232 uri_len = strlen(prov->uri); in gatt_prov_adv_create()
241 prov_sd[prov_sd_len].data = (const uint8_t *)prov->uri; in gatt_prov_adv_create()
249 prov_sd[prov_sd_len].data = BT_DEVICE_NAME; in gatt_prov_adv_create()
257 const void *data, uint16_t len, in gatt_send() argument
260 LOG_DBG("%u bytes: %s", len, bt_hex(data, len)); in gatt_send()
263 .data = data, in gatt_send()
279 return -ENOTSUP; in bt_mesh_pb_gatt_srv_adv_start()
305 LOG_DBG("remaining fast adv time (%lld ms)", (FAST_ADV_TIME - elapsed_time)); in bt_mesh_pb_gatt_srv_adv_start()
307 return bt_mesh_adv_gatt_start(&fast_adv_param, (FAST_ADV_TIME - elapsed_time), in bt_mesh_pb_gatt_srv_adv_start()