From 699270e09eef2746caf1e0e63b4ec1d7c778dfcb Mon Sep 17 00:00:00 2001 From: lly Date: Fri, 22 May 2020 15:32:12 +0800 Subject: [PATCH] ble_mesh: Fix Provisioner failed to publish --- components/bt/esp_ble_mesh/mesh_core/access.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/bt/esp_ble_mesh/mesh_core/access.c b/components/bt/esp_ble_mesh/mesh_core/access.c index eb18d88a91..3de8c40523 100644 --- a/components/bt/esp_ble_mesh/mesh_core/access.c +++ b/components/bt/esp_ble_mesh/mesh_core/access.c @@ -1032,7 +1032,9 @@ int bt_mesh_model_publish(struct bt_mesh_model *model) struct bt_mesh_model_pub *pub = model->pub; struct bt_mesh_app_key *key = NULL; struct net_buf_simple *sdu = NULL; - struct bt_mesh_msg_ctx ctx = {0}; + struct bt_mesh_msg_ctx ctx = { + .model = model, + }; struct bt_mesh_net_tx tx = { .sub = NULL, .ctx = &ctx,