This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

如何持续保持scan的状态



我现在使用Observer 模式的这个方法扫描,过一段时间就会停止,需要重新扫

    GAPObserverRole_StartDiscovery( DEFAULT_DISCOVERY_MODE,
                          DEFAULT_DISCOVERY_ACTIVE_SCAN,
                          DEFAULT_DISCOVERY_WHITE_LIST );

我希望它能一直保持扫描状态,在这里找到可以用 HCI_LE_SetScanEnableCmd 做到。那么问题是,这个方法需要在哪获得回调?