-
Notifications
You must be signed in to change notification settings - Fork 7.7k
ESP32 BLE Mesh only connected node can receive on/off commands #11224
-
Hi,
I have faced the same issue in this post.
I setup a mesh network using nRF Mesh android app with 3 nodes: 1 node with onoff client model (named cli1), 2 nodes with onoff server models (named srv1, srv2 correspondingly).
-
To control led on node srv1, I must press Connect button in the app and select node srv1. If connecting successfully, then I can control leds on/off (already binding app key) on node srv1. At this time, if I choose node srv2, then I can't control leds on srv2.
-
To control led on node srv2, I must press Connect button in the app and select node srv2. If connecting successfully, then I can control leds on/off (already binding app key) on node srv2. At this time, if I choose node srv1, then I can't control leds on srv1.
-
If I press Connect button in the app, and select node cli1. If successfully, but I can't control leds on nodes srv1, srv2.
In my understanding of BLE mesh, if the app connects successfully to one of 3 nodes within a mesh network, then I can control leds on all server nodes in that mesh network from the app, or any nodes.
I use 3 boards with ESP32-C6 chip, esp-idf 5.4.1, in Arduino environment using NimBLE host stack. I follow 2 tutorials:
- https://github.com/espressif/esp-idf/tree/v5.4.1/examples/bluetooth/esp_ble_mesh/onoff_models/onoff_server
- https://github.com/espressif/esp-idf/tree/v5.4.1/examples/bluetooth/esp_ble_mesh/onoff_models/onoff_client
Here are my 3 boards: 1 board with blue led is OnOff Client node, the other 2 boards are OnOff Server nodes.
488161429_9663033010384394_4772114802101083465_n
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 1 comment
-
I've just solved it with option CONFIG_BT_LE_SCAN_DUPL_TYPE_DATA_DEVICE=y in my sdkconfig!
Beta Was this translation helpful? Give feedback.