LOG_I("<INFO> BLE_ADV_EVT_FAST_WHITELIST\r\n"); break; case BLE_ADV_EVT_SLOW_WHITELIST: LOG_I("<INFO> BLE_ADV_EVT_SLOW_WHITELIST\r\n"); err_code = ble_advertising_restart_without_whitelist(); APP_ERROR_CHECK(err_code); break; case BLE_ADV_EVT_IDLE: // 空闲由主线程决定,该...
APP_ERROR_CHECK(err_code);break;caseBLE_ADV_EVT_IDLE:// 空闲由主线程决定,该事件可以忽略break;#ifBS_BLE_WHITELIST_SUPPORTcaseBLE_ADV_EVT_WHITELIST_REQUEST: {ble_gap_addr_twhitelist_addrs[BLE_GAP_WHITELIST_ADDR_MAX_COUNT];ble_gap_irk_twhitelist_irks[BLE_GAP_WHITELIST_ADDR_MAX_COUNT];uint3...
init.config.ble_adv_fast_interval = APP_ADV_INTERVAL;//广播间隔 init.config.ble_adv_fast_timeout = APP_ADV_DURATION;//广播超时 init.evt_handler = on_adv_evt; err_code =ble_advertising_init(&m_advertising, &init);//初始化广播,导入参数 APP_ERROR_CHECK(err_code); ble_advertising_conn_...
*/ static void on_adv_evt(ble_adv_evt_t ble_adv_evt) { uint32_t err_code; switch (ble_adv_evt) { case BLE_ADV_EVT_FAST: err_code = bsp_indication_set(BSP_INDICATE_ADVERTISING); APP_ERROR_CHECK(err_code); break; case BLE_ADV_EVT_IDLE: sleep_mode_enter(); break; defa...
However with this I am having trouble defining the on_adv_evt callback, which would normally allow me to go to low-power mode throughBLE_ADV_EVT_IDLEwhen theAPP_ADV_DURATIONis over. Is it possible to use the coded phy with the ble_advertising module so I can use the same callbacks an...
tuya_ble_gap_advertising_adv_data_update tuya_ble_gap_advertising_scan_rsp_data_update tuya_ble_gap_disconnect tuya_ble_gatt_send_data tuya_ble_timer_create tuya_ble_timer_delete tuya_ble_timer_start tuya_ble_timer_restart tuya_ble_timer_stop ...
这里的状态机轮转也是 熟悉的套路,开始是 idle状态,bta_hh_st_idle /*BTA_HH_API_MAINT_DEV_EVT*/{BTA_HH_MAINT_DEV_ACT, BTA_HH_IDLE_ST }, 事件处理之后还是idle 状态,执行的行为是BTA_HH_MAINT_DEV_ACT: /*** ** ** Function bta_hh_maint_dev_act ** ** Description HID Host maintain dev...
(inlined by) ble_gap_adv_stop_no_lock at /Volumes/User/MBP-Google-Drive/jamcorder/firmware/esp-idf/components/bt/host/nimble/nimble/nimble/host/src/ble_gap.c:2356 0x42091f7c: ble_gap_preempt_no_lock at /Volumes/User/MBP-Google-Drive/jamcorder/firmware/esp-idf/components/bt/host/...
This mode ensures that BLE Sub-system is completely idle and no procedures such ADV, SCAN and CONNECTION are active. The following table indicates the allowed sleep modes for the complete system (BLE Sub-system and the micro- controller). Modes marked In 'X' are the allowed combinations. ...
这里的状态机轮转也是 熟悉的套路,开始是 idle状态,bta_hh_st_idle /* BTA_HH_API_MAINT_DEV_EVT */ {BTA_HH_MAINT_DEV_ACT, BTA_HH_IDLE_ST }, 1. 事件处理之后还是idle 状态,执行的行为是BTA_HH_MAINT_DEV_ACT: /*** ** ** Function bta_hh_maint_dev_act ** ** Description HID Host ma...