# The Document of ESP32 BLE_MESH Commands ## Overall Command * `bmreg`: Provisioner/node register callback * Example: `bmreg` * Result: `Bm:Reg,OK` * `bminit`: Provisioner/node initialize * `-m`: `mesh modle` * Example: `bminit -m 0x0001` * Result: `Bm:Init,OK` * `bmpbind`: Provisioner binds Appkey with local model * `-a`: `:appkey index` * `-e`: `:element address` * `-n`: `:network index` * `-m`: `:model id` * `-c`: `:company id` * Example: `bmpbind -a 0 -e 0x01 -m 0x1001 -n 0x00` * Result: `provisioning:AppKeyBind,OK` * `bmpdev`: Provisioner add/delete unprovisioned device * `-z`: `action type ` * `-d`: `device address` * `-u`: `device uuid` * `-a`: `address type` * `-f`: `address flag` * `-b`: `used bearer` * `-o`: `oob information` * Example: `bmpdev -z add -d bt_mac -b -1 -a 0` * Result: `provisioner:DevAdd/Del,OK` * `bmoob`: Provisioner/node config OOB parameters * `-s`: `Static OOB value` * `-l`: `Static OOB value length` * `-x`: `Maximum size of Output OOB` * `-o`: `Supported Output OOB Actions` * `-y`: `Maximum size of Input OOB` * `-i`: `Supported Input OOB Actions` * `-p`: `start address assigned by provisioner` * Example: `bmoob -o -0 -x 0` * Result: `OOB:Load,OK` * `bmpbearer`: Enable/disable provisioner different bearer * `-b`: `bearer supported` * `-e`: `enable or disable bearer` * Example: `bmpbearer -b 1 -e 1` * Result: `provisioner:EnBearer,OK` * `bmnbearer`: Enable/disable node different bearer * `-b`: `bearer supported` * `-e`: `enable or disable bearer` * Example: `bmnbearer -b 1 -e 1` * Result: `Node:EnBearer,OK` * `bmpkey`: Add/Delete NetKey and AppKey of Provisioner * `-z`: `:add app key or network key` * `-n`: `:network key index` * `-k`: `:appkey or network` * `-a`: `:appkey index` * Example: `bmpkey -z netkey -n 1 -k ` * Result: `provisioner:NetKeyAdd,OK` * `bmccm`: BLE Mesh configuration client model operations * `-z`: `:action type`:add or del client model * `-x`: `:set state` * `-o`: `:message opcode` * `-u`: `
:unicast address` * `-n`: `:net work index` * `-i`: `:appkey index` * `-r`: `:relay statue` * `-t`: `:relay transmit` * `-c`: `:company id` * `-v`: `:value` * `-a`: `
:address` * `-m`: `:model id` * Example: `bmccm -z reg` * Result: `ConfigClient:OK` * `bmgocm`: BLE Mesh onoff client model operations * `-z`: `:action type`: on or off client model * `-o`: `:message opcode` * `-u`: `
:unicast address` * `-n`: `:network key index` * `-a`: `:appkey index` * `-r`: `:role` * `-t`: `