So I downloaded environment from here: https://docs.espressif.com/projects/esp ... index.html successfully.
Then I uploaded the ble_mesh_console example to two of my ESP32 boards. It says in the instructions that you can provision devices and send packets with this example.
I opened consoles of both boards using
Code: Select all
idf.py monitor -p [port]
I found this instructions on how to provision devices from the console: viewtopic.php?t=11509 (*) (first answer - using bmreg, bminit bmoob, ...)
I provisioned one board (the provisioner) with another (regular node) successfully.
But now on (*) page it says that after provisioning the provisioner can now send and receive messages.
OK, but how do I do that? There is a file with BLE Mesh commands you can use in the console, but I dont know which commands to use, nor do I know the parameters of the commands I need to set as I cant find any documentation on this topic, except this file.
I tried with the command
Code: Select all
bmpublish -d 1 -o 0x8204 -m 0x1000 -r 0 -a 1 -p 0 -i 0
now I know the parameter -m (this is a ID of the module published to) is correct, I dont know what is -o (opcode), -r (device role), -a (unicast address), -p (period) and -i (appkey index)
It throws an error that the appkey index is invalid. Is this even the right approach? Did I forget to set something (like appkey -> I tried doing that with bmpkey command, but didnt work). Or should I use different commands?
I just want to know what do I do now that I provisioned boards to Bluetooth Mesh? How to send messages?
I'm really confused as I cant find any documentation on this.
Thank you for your answers