Hi teams,
我有质疑在网格应用程序中进行分离的扫描,如下线程。
but when I called ble_gap_scan_start() and get BLE events with ble_get_event() in separate task, console says another scan was already running, and not only BLE_EVT_GAP_ADV_REPORT/BLE_EVT_GAP_SCAN_COMPLETED, but other events also be received in the same task.
And eventually, MESH application did not work.
How can I separate BLE event handling among multiple tasks?
Device:
嗨firebird。
I assume that you are working on ble_mesh project. Otherwise, please indicate where you are working on. Since you have modified it, can you please share what modifications we have done and which your requirement is? Have you added a custom task?
谢谢,PM_DIALOG.
Hi,
是的,我正在使用带有网格SDK 1.6.1的BLE_MESH示例。
I added the following task and started it after device has been provisioned.
Currently, this task just start another scan and check RSSI strength. I will add some codes for identifing specific devices later.
嗨Firebird,
Can you please run your code in debug mode? Does it get stuck anywhere?
谢谢,PM_DIALOG.
此代码运行一段时间和随机卡。
Every time it stuck, the position is different, so can't figure out the cause.
And some events like BLE_EVT_GAP_ADV_COMPLETED, which is not intended to receive (related with MESH function) was received.
I want to know the followings:
1.这种方法是否正确?即,我可以在不影响彼此的情况下在多个任务中获得BLE事件吗?
2. If so, can you please review my code and advice what is wrong.
3.如果没有,回到最初的问题,如何I execute separate scan in MESH application?
任何更新?