From c3fe42250cc0e0237d4ffbff86fbfae0fee6fae8 Mon Sep 17 00:00:00 2001 From: mbroek Date: Fri, 26 Jun 2020 11:12:28 +0200 Subject: [PATCH] When a generic mesh model message is received "bt_mesh_generic_server_cb_evt_to_btc" copies the ctx values to cb_params for the mesh stack. recv_rssi was not copied. This means the rssi could not be read when receiving generic server messages using ble_mesh. --- components/bt/esp_ble_mesh/btc/btc_ble_mesh_generic_model.c | 1 + 1 file changed, 1 insertion(+) diff --git a/components/bt/esp_ble_mesh/btc/btc_ble_mesh_generic_model.c b/components/bt/esp_ble_mesh/btc/btc_ble_mesh_generic_model.c index 7a9c5348f8..38839b61a4 100644 --- a/components/bt/esp_ble_mesh/btc/btc_ble_mesh_generic_model.c +++ b/components/bt/esp_ble_mesh/btc/btc_ble_mesh_generic_model.c @@ -742,6 +742,7 @@ void bt_mesh_generic_server_cb_evt_to_btc(u8_t evt_type, cb_params.ctx.recv_ttl = ctx->recv_ttl; cb_params.ctx.recv_op = ctx->recv_op; cb_params.ctx.recv_dst = ctx->recv_dst; + cb_params.ctx.recv_rssi = ctx->recv_rssi; if (val && len) { length = (len <= sizeof(cb_params.value)) ? len : sizeof(cb_params.value);