"BLE MESH" How to set client->internal_data
Posted: Thu May 21, 2020 2:41 am
Hi,
I want to send generic onoff message after provisioning a Node and use example ble_mesh_console/ble_mesh_node.
But bt_mesh_generic_client_set_state show Generic Client user data is NULL, I think client->internal_data is NULL.
I don't see any init for internal_data of gen_onoff_cli in this sample.
Could you give me some advice?
Thanks
the following is my step
esp32> bmreg
I (6055) ble_mesh_node_console: Node:Reg,OK
esp32>
esp32> bmoob -o 0 -y 0
I (9335) ble_mesh_node_console: OOB:Load,OK
esp32>
esp32> bminit -m 0x1001
printf bt_mesh_init
w: mesh_core bt_mesh_trans_init
I (13795) ble_mesh_node_console: Provisioning:Register,OK
esp32>
esp32> bmnbearer -b 3 -e 1
I (17255) ble_mesh_node_console: Node:EnBearer,OK
esp32> I (35385) ble_mesh_node_console: Node:LinkOpen,OK,2
I (38485) ble_mesh_node_console: Node:LinkClose,OK,2
I (38485) ble_mesh_node_console: Provisioning:Success,2
esp32>
esp32> bmgocm -z set -o 0x8202 -a 0 -r 0 -u 0xc000 -n 0 -s 0 -t 0
it show BT_ERR("%s, Generic Client user data is NULL", __func__); in bt_mesh_generic_client_set_state
E (82695) BLE_MESH: bt_mesh_client_send_msg, Invalid client internal data
E (82695) BLE_MESH: gen_set_state, Failed to send Generic Set message (err -22)
I want to send generic onoff message after provisioning a Node and use example ble_mesh_console/ble_mesh_node.
But bt_mesh_generic_client_set_state show Generic Client user data is NULL, I think client->internal_data is NULL.
I don't see any init for internal_data of gen_onoff_cli in this sample.
Could you give me some advice?
Thanks
the following is my step
esp32> bmreg
I (6055) ble_mesh_node_console: Node:Reg,OK
esp32>
esp32> bmoob -o 0 -y 0
I (9335) ble_mesh_node_console: OOB:Load,OK
esp32>
esp32> bminit -m 0x1001
printf bt_mesh_init
w: mesh_core bt_mesh_trans_init
I (13795) ble_mesh_node_console: Provisioning:Register,OK
esp32>
esp32> bmnbearer -b 3 -e 1
I (17255) ble_mesh_node_console: Node:EnBearer,OK
esp32> I (35385) ble_mesh_node_console: Node:LinkOpen,OK,2
I (38485) ble_mesh_node_console: Node:LinkClose,OK,2
I (38485) ble_mesh_node_console: Provisioning:Success,2
esp32>
esp32> bmgocm -z set -o 0x8202 -a 0 -r 0 -u 0xc000 -n 0 -s 0 -t 0
it show BT_ERR("%s, Generic Client user data is NULL", __func__); in bt_mesh_generic_client_set_state
E (82695) BLE_MESH: bt_mesh_client_send_msg, Invalid client internal data
E (82695) BLE_MESH: gen_set_state, Failed to send Generic Set message (err -22)