ble_gap_disc(own_addr_type, BLE_HS_FOREVER, &disc_params, discovery_cb, NULL) wifi connection doesn't work well (long connection time, DHCP not working, etc), but if I use ble_gap_disc(own_addr_type, 50000, &disc_params, discovery_cb, NULL) after the timeout (50s) all start ...
I tried a few different variations in the struct ble_gap_disc_params, but none has worked. I just don't get callbacks for the SCAN_RSP messages. And I know for sure the peripheral device is sending the SCAN_RSP messages, because I can see them with a BLE sniffer. ...
I tried a few different variations in the struct ble_gap_disc_params, but none has worked. I just don't get callbacks for the SCAN_RSP messages. And I know for sure the peripheral device is sending the SCAN_RSP messages, because I can see them with a BLE sniffer. ...
memset(&gap_conn_params,0,sizeof(gap_conn_params)); //初始化GAP连接间隔,从机延迟,超时时间 gap_conn_params.min_conn_interval = MIN_CONN_INTERVAL; gap_conn_params.max_conn_interval = MAX_CONN_INTERVAL; gap_conn_params.slave_latency = SLAVE_LATENCY; gap_conn_params.conn_sup_timeout = C...
发现模式如果为GAP_DISC_MODE_BROADCASTER,则广播模式只能设置为GAP_ADV_TYPE_ADV_NONCONN_IND(不可连接也不可扫描)。 peer_addr参数只在定向广播或者是controller privacy被使能(即ble_gap_privacy_params_set函数的第二个参 BLE_GAP_PRIV_CFG_PRIV_EN_BIT被置位)的情况下才会使用。 代码路径:SDK_Folder\project...
GAP_SetParamValue(TGAP_DISC_ADV_INT_MAX, advInt);//最大广播间隔 } 连接间隔: // Minimum connection interval (units of 1.25ms, 6=7.5ms) //最小连接间隔 #defineDEFAULT_DESIRED_MIN_CONN_INTERVAL 6 // Maximum connection interval (units of 1.25ms, 100=125ms) //最大连接间隔 ...
以下GAP 接口位于bt/host/bluedroid/api/include/api/esp_bt_main.h和bt/host/bluedroid/api/include/api/esp_gap_ble_api.h。 2.4 esp_bluedroid_init 2.5 esp_bluedroid_enable 2.6 esp_ble_gap_register_callback 2.7 esp_ble_gap_set_scan_params ...
For example, for one device with the MSB value of 0xFB I can see this 0xFB into the p_ble_evt->evt.gap_evt.params.connected.peer_addr.addr.If this may helps as another clue, the sensor manufacturer has an iPhone app that recovers the right address (used for filtering ...
I tried a few different variations in the struct ble_gap_disc_params, but none has worked. I just don't get callbacks for the SCAN_RSP messages. And I know for sure the peripheral device is sending the SCAN_RSP messages, because I can see them with a BLE sniffer. ...
esp_ble_gap_start_advertising(&spp_adv_params); break; case ESP_GATTS_OPEN_EVT: break; case ESP_GATTS_CANCEL_OPEN_EVT: break; case ESP_GATTS_CLOSE_EVT: break; case ESP_GATTS_LISTEN_EVT: break; case ESP_GATTS_CONGEST_EVT: break; ...