switch(req->cmd->opcode) {
case MESH_OPCODE_DEV_COMP_GET: {
- /* Send event with timeout */
+ /* Send event with timeout for Vendor Features */
+ bluetooth_mesh_node_features_t *vendor_event = \
+ g_malloc0(sizeof(bluetooth_mesh_node_features_t));
+
+ _bt_mesh_util_convert_hex_to_string((uint8_t *) req->net_uuid, 16,
+ vendor_event->net_uuid,
+ BLUETOOTH_MESH_NETWORK_UUID_STRING_LENGTH + 1);
+ vendor_event->unicast = req->addr;
+ __bt_mesh_handle_pending_dev_config_request_info(
+ BLUETOOTH_ERROR_TIMEOUT, BT_MESH_NODE_GET_VENDOR_FEATURES,
+ vendor_event, sizeof(bluetooth_mesh_node_features_t));
+ g_free(vendor_event);
+
+ /* Send event with timeout for Node Browse */
event_mesh_devkey_message_t *event = \
g_malloc0(sizeof(event_mesh_devkey_message_t));
memcpy(event->net_uuid.uuid, req->net_uuid, 16);
event->source = req->addr;
+
__bt_mesh_handle_pending_dev_config_request_info(
BLUETOOTH_ERROR_TIMEOUT, BT_MESH_NODE_BROWSE,
event, sizeof(event_mesh_devkey_message_t));
+
g_free(event);
break;
}
_bt_mesh_node_get_element_count(event->net_uuid.uuid, remote_addr, &elem_count);
node->unicast = event->source;
node->count = elem_count;
+ BT_INFO("Mesh: Browse event for Node: Unicast [0x%2.2x] Element Count [%d]",
+ node->unicast, elem_count);
/* Send Event */
__bt_mesh_send_node_browsed_event(result, node);
strlen(req->net_uuid), net_uuid.uuid, 16);
/* Check if Node's vendor features are already svaed or not */
if (_bt_mesh_node_get_vendor_features(net_uuid.uuid, req->unicast, req)) {
+ BT_INFO("Mesh: Vendor Features already available for Node: Unicast [0x%.2x]",
+ req->unicast);
/* Schedule event ot Application */
bluetooth_mesh_node_features_t *event = \
g_memdup(req, sizeof(bluetooth_mesh_node_features_t));
strlen(req->net_uuid), net_uuid.uuid, 16);
dest = req->unicast;
+ BT_INFO("Mesh: Get Vendor Features for Remote Node Unicast [0x%2.2x]", dest);
/* Check pending request */
if (_bt_mesh_check_pending_request(MESH_OPCODE_DEV_COMP_GET,
return BLUETOOTH_ERROR_DEVICE_BUSY;
}
+ BT_INFO("Mesh: Browse Remote Node: Unicast [0x%2.2x]", dest);
/* Get Subnet index of the rmeote node for TX encryption */
netkey_idx = _bt_mesh_node_get_subnet_idx(net_uuid.uuid, dest);
if (netkey_idx == MESH_NET_IDX_INVALID)
dev_uuid.uuid, &dest))
return BLUETOOTH_ERROR_INTERNAL;
+ BT_INFO("Mesh: Browse Remote Node: Unicast [0x%2.2x]", dest);
/* Check pending request */
if (_bt_mesh_check_pending_request(MESH_OPCODE_DEV_COMP_GET,
dest, net_uuid.uuid)) {