feat(ble_mesh): Use a separate file for heartbeat handling

This commit is contained in:
Liu Linyan
2023-09-28 10:44:06 +08:00
committed by BOT
parent 2472c62fff
commit 5de452e12a
12 changed files with 434 additions and 379 deletions

View File

@@ -197,8 +197,8 @@ static int32_t bt_mesh_client_calc_timeout(struct bt_mesh_msg_ctx *ctx,
/* Based on the message length, calculate how many segments are needed.
* All the messages sent from here are access messages.
*/
seg_rtx_num = bt_mesh_get_seg_retrans_num();
seg_rtx_to = bt_mesh_get_seg_retrans_timeout(ctx->send_ttl);
seg_rtx_num = bt_mesh_get_seg_rtx_num();
seg_rtx_to = bt_mesh_get_seg_rtx_timeout(ctx->send_ttl);
seg_count = (msg->len + mic_size - 1) / 12U + 1U;
duration = bt_mesh_get_adv_duration(ctx);