1. 程式人生 > >ble Peripheral 角色 5 種廣播包解析

ble Peripheral 角色 5 種廣播包解析

cc2541 協議棧:

------------------------------------------------------------------------------------------

/** @defgroup GAP_ADVERTISEMENT_REPORT_TYPE_DEFINES GAP Advertising Report Event Types

 * for eventType field in gapDevRec_t and gapDeviceInfoEvent_t
 * @{
 */
#define GAP_ADRPT_ADV_IND                 0x00  //!< Connectable undirected advertisement
#define GAP_ADRPT_ADV_DIRECT_IND          0x01  //!< Connectable directed advertisement
#define GAP_ADRPT_ADV_SCAN_IND            0x02  //!< Scannable undirected advertisement
#define GAP_ADRPT_ADV_NONCONN_IND         0x03  //!< Non-Connectable undirected advertisement

#define GAP_ADRPT_SCAN_RSP                0x04  //!< Scan Response

------------------------------------------------------------------------------------------

非定向可連線廣播包

定向可連線廣播包

非定向可連線廣播包

非定向不可連線廣播包

掃描響應廣播包