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

Network always disconnected #35

Open
HilalBisrie opened this issue Oct 17, 2024 · 6 comments
Open

Network always disconnected #35

HilalBisrie opened this issue Oct 17, 2024 · 6 comments

Comments

@HilalBisrie
Copy link

HilalBisrie commented Oct 17, 2024

I’m facing an issue where my ESP32 connects to WiFi but disconnects immediately after. Could you provide a solution to resolve this problem? I've also change network. Please help me sir
{69457F15-F048-4A37-AEEF-68400F6C2FD4} png

@BojanJurca
Copy link
Owner

It looks like you're having problems with WiFi connection. I suggest

  1. checking DEFAULT_STA_SSID and DEFAULT_STA_PASSWORD in Esp32_servers_config.h

  2. temporarily uncomment // fileSystem.formatLittleFs ();  line in Esp32_oscilloscope.ino and run the code once to format flash disk and start from the scratch.

  3. comment out fileSystem.formatLittleFs (); to prevent formatting at each restart.

@HilalBisrie
Copy link
Author

I've done it, but still disconnected sir. Idk what's the main problem in my case, because i've try using the same config network for other project is working. So, should I change the tz in server.ino sirr?
{25921D50-E5D7-4AD2-9F39-C0E957A614AE} png

@BojanJurca
Copy link
Owner

TZ (timezone) is irrelevant for the oscilloscope itself and has nothing to do with WiFi.

I can see that you are connecting to Samsung SSID. Is this your phone? Is it possible you didn't turn your phone's hotspot on?

@BojanJurca
Copy link
Owner

It seems that you are compiling a test/development Arduino sketch "servers.ino".

Please, use "Esp32_oscilloscope.ino" and define your settings in "Esp32_servers_config.h" before compiling.

@BojanJurca
Copy link
Owner

But if you are interested in the server project, please visit https://github.com/BojanJurca/Multitasking-Esp32-HTTP-FTP-Telnet-servers-for-Arduino.

In this case you will most likely want to change TZ to your timezone which you can find here: https://github.com/nayarsystems/posix_tz_db/blob/master/zones.csv

@HilalBisrie HilalBisrie changed the title Network alway disconneted Network always disconnected Oct 17, 2024
@HilalBisrie
Copy link
Author

HilalBisrie commented Oct 18, 2024

My issue was resolved by changing my router SSID from 'Samsung galaxy s22' to 'Ywach'. It turns out that the network configuration only reads the first word of the SSID, which caused the problem initially.

Thank you so much, you're very kind sir
Uploading {5D55F576-D414-47FF-B22B-EE7D89AF40C5}.png.jpg…

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants