BojanJurca / Esp32_oscilloscope

ESP32 oscilloscope - see the signals through Web browser the way ESP32 sees them
Creative Commons Zero v1.0 Universal
794 stars 93 forks source link

Network always disconnected #35

Open HilalBisrie opened 4 weeks ago

HilalBisrie commented 4 weeks ago

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 commented 4 weeks ago

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 commented 4 weeks ago

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 commented 4 weeks ago

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 commented 4 weeks ago

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 commented 4 weeks ago

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 commented 4 weeks ago

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…]()