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.

[参考译文] CC2650DK:观测器

Guru**** 2581065 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/wireless-connectivity/bluetooth-group/bluetooth/f/bluetooth-forum/564649/cc2650dk-observer

器件型号:CC2650DK

 扫描后,我可以在何处接收观测器文件中的事件数据?

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    您好!

    我不确定是否遵循您的问题、但在 simple_observer 代码中、一旦器件完成发现、它将进入
    静态空 SimpleBLEObserver_processRoleEvent (gapObserverRoleEvent_t *pEvent)



    案例 GAP_DEVICE_DISCOVERING_EVENT:

    所有设备信息都存储在*pEvent 中,该事件具有以下结构
    /**
    *观察者事件结构
    *
    typedef union

    gapEventHdr_t 差距; //!< GAP_MSG_EVENT 和 STATUS。
    gapDeviceInitDoneEvent_t initDone; //!< GAP 初始化完成。
    gapDeviceInfoEvent_t DeviceInfo; //!<发现设备信息事件结构。
    gapDevDiscEvent_t disccmpl; //!<发现完整的事件结构。
    } gapObserverRoleEvent_t;