ESP 32 WIFI参数修改

puleya
Posts: 15
Joined: Tue May 28, 2024 5:56 am

ESP 32 WIFI参数修改

Postby puleya » Wed Sep 18, 2024 11:48 am

请问esp32能修改beacon interval吗?

ESP_TianSW
Posts: 52
Joined: Wed Sep 23, 2020 12:19 pm

Re: ESP 32 WIFI参数修改

Postby ESP_TianSW » Thu Sep 19, 2024 2:22 am

可以

Code: Select all

wifi_config_t wifi_cfg;
esp_wifi_get_config(WIFI_IF_AP, &wifi_cfg);
wifi_cfg.ap.beacon_interval = 200;
esp_wifi_set_config(WIFI_IF_AP, &wifi_cfg);

puleya
Posts: 15
Joined: Tue May 28, 2024 5:56 am

Re: ESP 32 WIFI参数修改

Postby puleya » Thu Sep 19, 2024 3:54 pm

我在Mesh-Lite的local_control示例里面修改配置代码后,似乎没有用,请问一下是怎么回事?

ESP_TianSW
Posts: 52
Joined: Wed Sep 23, 2020 12:19 pm

Re: ESP 32 WIFI参数修改

Postby ESP_TianSW » Fri Sep 20, 2024 6:08 am

请问修改的什么配置代码?

puleya
Posts: 15
Joined: Tue May 28, 2024 5:56 am

Re: ESP 32 WIFI参数修改

Postby puleya » Fri Sep 20, 2024 9:08 am

修改的wifi_init()
1726823249619.png
1726823249619.png (35.03 KiB) Viewed 5939 times

ESP_TianSW
Posts: 52
Joined: Wed Sep 23, 2020 12:19 pm

Re: ESP 32 WIFI参数修改

Postby ESP_TianSW » Mon Sep 23, 2024 6:34 am

你是怎么确认设置的没有用的?beacon interval 是 beacon 发送间隔,你抓包确认了吗?

puleya
Posts: 15
Joined: Tue May 28, 2024 5:56 am

Re: ESP 32 WIFI参数修改

Postby puleya » Fri Sep 27, 2024 3:28 am

没有抓包确认,修改编译并烧录后,ESP32输出的日志发现没有发生改变,beacon interval仍然等于102400us。

ESP_TianSW
Posts: 52
Joined: Wed Sep 23, 2020 12:19 pm

Re: ESP 32 WIFI参数修改

Postby ESP_TianSW » Fri Sep 27, 2024 6:06 am

有日志吗?你是否是看得 station 连接的路由器的 beacon interval 打印

puleya
Posts: 15
Joined: Tue May 28, 2024 5:56 am

Re: ESP 32 WIFI参数修改

Postby puleya » Wed Oct 09, 2024 3:59 am

请问这是ESP32连接的AP的beacon interval吗?
Attachments
1111.png
1111.png (13.79 KiB) Viewed 2946 times

ESP_TianSW
Posts: 52
Joined: Wed Sep 23, 2020 12:19 pm

Re: ESP 32 WIFI参数修改

Postby ESP_TianSW » Thu Oct 10, 2024 3:45 am

是的

Who is online

Users browsing this forum: No registered users and 7 guests