Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

file serving demo wifi keep disconnecting (IDFGH-13700) #14572

Closed
3 tasks done
Tracker647 opened this issue Sep 13, 2024 · 2 comments
Closed
3 tasks done

file serving demo wifi keep disconnecting (IDFGH-13700) #14572

Tracker647 opened this issue Sep 13, 2024 · 2 comments
Assignees
Labels
Resolution: Done Issue is done internally Status: Done Issue is done internally Type: Bug bugs in IDF

Comments

@Tracker647
Copy link

Tracker647 commented Sep 13, 2024

Answers checklist.

  • I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
  • I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
  • I have searched the issue tracker for a similar issue and not found a similar issue.

IDF version.

5.2.1

Operating System used.

Windows

How did you build your project?

VS Code IDE

If you are using Windows, please specify command line type.

PowerShell

What is the expected behavior?

flash the program, the board shoule be a wifi AP, connect the AP than will found serial output show DHCP assign new ip to client, then can access web page by browser enter url 192.168.4.1

What is the actual behavior?

the board seems become a STA to connect other wifi and keep output ”wifi disconnected“,can not find the wifi id what I set in menuconfig, inaccessible to webpage.

Steps to reproduce.

  1. select file_serving example
  2. simple build and flash
    ...

Build or installation Logs.

I (768) wifi:mode : sta (3c:

[2024-09-13 23:41:13.630]# RECV ASCII>
84:27:9f:9e:54)
I (778) wifi:enable tsf
�[0;32mI (778) example_connect: Connecting to myssid...�[0m
�[0;32mI (778) example_connect: Waiting for IP(s)�[0m


[2024-09-13 23:41:16.043]# RECV ASCII>
�[0;32mI (3188) example_connect: Wi-Fi disconnected, trying to reconnect...�[0m


[2024-09-13 23:41:18.438]# RECV ASCII>
�[0;32mI (5588) example_connect: Wi-Fi disconnected, trying to reconnect...�[0m


[2024-09-13 23:41:20.845]# RECV ASCII>
�[0;32mI (7998) example_connect: Wi-Fi disconnected, trying to reconnect...�[0m


[2024-09-13 23:41:23.268]# RECV ASCII>
�[0;32mI (10408) example_connect: Wi-Fi disconnected, trying to reconnect...�[0m


[2024-09-13 23:41:25.676]# RECV ASCII>
�[0;32mI (12818) example_connect: Wi-Fi disconnected, trying to reconnect...�[0m


[2024-09-13 23:41:28.070]# RECV ASCII>
�[0;32mI (15228) example_connect: Wi-Fi disconnected, trying to reconnect...�[0m

More Information.

The demo default setting assuming that esp32 http server is a station, but a server should not be AP for devices to connect? Is I selected a wrong demo or incorrect configure?
The board what I using is esp32c3.

@Tracker647 Tracker647 added the Type: Bug bugs in IDF label Sep 13, 2024
@espressif-bot espressif-bot added the Status: Opened Issue is new label Sep 13, 2024
@github-actions github-actions bot changed the title file serving demo wifi keep disconnecting file serving demo wifi keep disconnecting (IDFGH-13700) Sep 13, 2024
@nopnop2002
Copy link

nopnop2002 commented Sep 18, 2024

flash the program, the board shoule be a wifi AP

No.
This sample does not have the WiFi AP-MODE function.
It will always be in WiFi STA-MODE.
You will need to specify the router's SSID and password.

@espressif-bot espressif-bot added Status: In Progress Work is in progress and removed Status: Opened Issue is new labels Sep 18, 2024
@Alvin1Zhang
Copy link
Collaborator

Thanks for reporting, please help check if this helps https://github.com/espressif/esp-idf/tree/master/examples/protocols/http_server/file_serving#wi-fiethernet-connection, feel free to reopen. Thanks.

@espressif-bot espressif-bot added Status: Done Issue is done internally Resolution: Done Issue is done internally and removed Status: In Progress Work is in progress labels Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: Done Issue is done internally Status: Done Issue is done internally Type: Bug bugs in IDF
Projects
None yet
Development

No branches or pull requests

5 participants