I am using the ble_mesh_client_model example from branch ble_mesh_release/esp-ble-mesh-v0.6.1.
My intention is to connect a generic onoff server, running on a nrf52 board, and a generic
onoff client, running on an ESP32 LyraT board.
I modified the example to perform a esp_ble_mesh_generic_client_set_state if the
touch button is hit.
The documentation of the example says that the address of the destination should be entered
through the uart interface. But I want to send the message to all available nodes, and so I set
the address to:
Code: Select all
common.ctx.addr = ESP_BLE_MESH_ADDR_ALL_NODES;
Code: Select all
E (59555) BLE_MESH: model_send, Model not bound to AppKey 0xffff
E (59555) BLE_MESH: gen_set_state, Failed to send Generic Set message (err -22)
I (60565) ble_mesh_client: esp_ble_mesh_generic_cb: event is 1, error code is -22, opcode is 0x8202
I (60565) ble_mesh_client: ESP_BLE_MESH_GENERIC_CLIENT_SET_STATE_EVT
I (60575) ble_mesh_client: ESP_BLE_MESH_MODEL_OP_GEN_ONOFF_SET: onoff 0
Is there something I am missing?
Thanks in advance