连续签到天数:2天 | 签到总天数:5天 | 签到总奖励:34金币 |
|
悬赏10金币已解决
/* GAP events IDs */
typedef enum __ble_gap_event_id
{
ble_gap_event_power_on, /* 0 */
ble_gap_event_bondable, /* 1 */
ble_gap_event_set_advertising_complete, /* 2 */
ble_gap_event_bondable_pairing_timeout, /* 3 */
ble_gap_event_central_conn_attempt, /* 4 */
ble_gap_event_central_conn_complete, /* 5 */
ble_gap_event_central_disconn, /* 6 */
ble_gap_event_local_conn_success, /* 7 */
ble_gap_event_switch_central, /* 8 */
ble_gap_event_switch_peripheral, /* 9 */
ble_gap_event_remote_conn_success, /* 10 */
ble_gap_event_remote_conn_fail, /* 11 */
ble_gap_event_pairing_complete, /* 12 */
ble_gap_event_switch_timeout, /* 13 */
ble_gap_event_cancel_advertising, /* 14 */
ble_gap_event_no_connections, /* 15 */
ble_gap_event_power_off, /* 16 */
ble_gap_event_whitelist_timeout, /* 17 */
ble_gap_event_fast_scan_timeout, /* 18 */
ble_gap_event_bondable_connection_timeout, /* 19 */
ble_gap_event_fast_adv_timeout, /* 20 */
ble_gap_event_retry_encryption, /* 21 */
/* Update gap_events[] array if adding new item */
ble_gap_event_last /* Always leave as last item in enum */
} ble_gap_event_id_t;
上面是官方的ADK,不过没有扫描完成事件,只有一个扫描超时事件,不知道什么情况。如果我想拿到扫描的设备列表,应该是在哪个事件下得到呢?
|
最佳答案
查看完整内容
8670好像要自己写数据结构,存储扫描到的设备信息。
自动连接好像确实是的,这个需要自己根据需要来修改代码了。
是否存储扫描设备信息,是否自动连接,这些应该都与蓝牙协议无关,各家都是自定义的。
|