esp32 ble-mesh-vendor-client

User avatar
fb_iceg
Posts: 18
Joined: Tue Aug 22, 2023 7:29 am

esp32 ble-mesh-vendor-client

Postby fb_iceg » Fri Nov 03, 2023 10:09 am

esp-idf-5.1 针对 vendor client 提供的例程中,是作为 provisioner 的。

将软件移植后,作为一个 node,成功通过 nRF mesh app 配网成功。

Code: Select all

I (18427) EXAMPLE: ESP_BLE_MESH_MODEL_OP_APP_KEY_ADD
I (18427) EXAMPLE: net_idx 0x0000, app_idx 0x0000
I (18427) AppKey: 6d 94 f7 e9 b3 0e ef 9c 12 6d 5e c7 69 2d 54 76 
I (18437) prov_key.app_key: 6d 94 f7 e9 b3 0e ef 9c 12 6d 5e c7 69 2d 54 76 
I (27827) EXAMPLE: ESP_BLE_MESH_MODEL_OP_MODEL_APP_BIND
I (27827) EXAMPLE: elem_addr 0x0003, app_idx 0x0000, cid 0x02e5, mod_id 0x0000
I (31657) BOARD: button tap cb, send vendor message!
E (31657) BLE_MESH: Invalid NetKeyIndex 0x0000
E (31657) BLE_MESH: Failed to send client message 0x00c002e5
E (31667) EXAMPLE: Failed to send message 0xc002e5
代码见附件:
Attachments
main.c
(11.35 KiB) Downloaded 493 times

JialiangWang
Posts: 7
Joined: Sat Sep 18, 2021 6:22 am

Re: esp32 ble-mesh-vendor-client

Postby JialiangWang » Fri Nov 17, 2023 9:47 am

Hi,
你可以尝试把代码35行
#define MSG_ROLE ROLE_PROVISIONER
修改成
#define MSG_ROLE ROLE_NODE
再试一下

Who is online

Users browsing this forum: No registered users and 33 guests