各位好!我在运行ble mesh的示例工程,遇到疑问,请指点!
环境:
开发板:ESP32-DEVKITC-V4
ESP-IDF SDK:V5.0
目的:想利用Configuration Server Mode心跳消息做节点在线监测;
操作:
1)在运行onoff_server示例程序的A节点,利用nRF Mesh安卓APP,配置主元素下的Configuration Server Mode模型,让它发布heartbeat心跳消息到组地址0xC000。
2)在运行onoff_server示例程序的B节点,利用nRF Mesh安卓APP,配置主元素下的Configuration Server Mode模型,让它从组地址0xC000订阅heartbeat心跳消息。观察日志显示成功,在esp_ble_mesh_register_prov_callback()注册的回调函数中,定时收到ESP_BLE_MESH_HEARTBEAT_MESSAGE_RECV_EVT;
问题:
1)我能否在onoff_server示例程序中利用esp_ble_mesh_model_subscribe_group_addr()方法,编码的方式接收A节点发布到组地址0xC000上的心跳消息?我测试了不成功。
2)上面操作订阅的心跳事件ESP_BLE_MESH_HEARTBEAT_MESSAGE_RECV_EVT,接收在esp_ble_mesh_register_prov_callback()注册的回调函数,而不是esp_ble_mesh_register_config_server_callback()注册的回调函数中,这一底层程序的实现是否不匹配?
Ble mesh示例onoff_server中心跳消息Heartbeat的发布和订阅的疑问
-
- Posts: 5
- Joined: Fri Jan 06, 2023 1:34 am
-
- Posts: 29
- Joined: Sat Jun 24, 2023 12:52 am
Re: Ble mesh示例onoff_server中心跳消息Heartbeat的发布和订阅的疑问
感觉乐鑫都不屑于回答这些问题
-
- Posts: 132
- Joined: Thu Nov 15, 2018 2:06 am
Re: Ble mesh示例onoff_server中心跳消息Heartbeat的发布和订阅的疑问
实在抱歉,漏回复这条。
您可以参考这个示例,开发 heartbeat
您可以参考这个示例,开发 heartbeat
Who is online
Users browsing this forum: No registered users and 95 guests