From c27b399a492802e0078ee4a5d48f36c71691004c Mon Sep 17 00:00:00 2001 From: lly Date: Thu, 7 May 2020 15:12:00 +0800 Subject: [PATCH] ble_mesh: add api to set net_transmit --- components/bt/esp_ble_mesh/mesh_core/cfg_srv.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/components/bt/esp_ble_mesh/mesh_core/cfg_srv.c b/components/bt/esp_ble_mesh/mesh_core/cfg_srv.c index dbd31dd297..f7fb7498d6 100644 --- a/components/bt/esp_ble_mesh/mesh_core/cfg_srv.c +++ b/components/bt/esp_ble_mesh/mesh_core/cfg_srv.c @@ -3528,6 +3528,16 @@ u8_t bt_mesh_net_transmit_get(void) return 0; } +void bt_mesh_net_transmit_set(u8_t val) +{ + if (conf == NULL) { + BT_ERR("Invalid conf!"); + return; + } + + conf->net_transmit = val; +} + u8_t bt_mesh_relay_get(void) { if (conf) {