Skip to content

WiFiClient fails after 3 loops #70

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

Closed
espuser opened this issue Nov 27, 2016 · 10 comments
Closed

WiFiClient fails after 3 loops #70

espuser opened this issue Nov 27, 2016 · 10 comments

Comments

@espuser
Copy link

espuser commented Nov 27, 2016

Hi,
please insert a port disconnect into examples code

...
Serial.println("closing connection");
client.stop();
}

BR

@me-no-dev
Copy link
Member

me-no-dev commented Nov 27, 2016

Since client is a local variable for the function, at function end, the destruct method for client will be called, which will close the connection (call client.stop())

@espuser
Copy link
Author

espuser commented Nov 28, 2016

Hi,
from point of view loop() you are right but the channel will be kept open
so after 3 loops (> MAXSOCKETS?) I get an connect fail in my case
BR

@me-no-dev
Copy link
Member

that is rather strange... it behaves fine when I try it here. What is the web server?

@espuser
Copy link
Author

espuser commented Nov 28, 2016

Apache Server with simple Index.html "It works" content
connecting to 192.168.10.22
Requesting URL: /index.html....................?private_key=....................&value=2
HTTP/1.1 200 OK
Date: Mon, 28 Nov 2016 12:36:47 GMT
Server: Apache/2.4.10 (Win32) OpenSSL/1.0.1i mod_jk/1.2.40 PHP/5.5.15
Last-Modified: Sat, 30 Mar 2013 11:29:00T
....
closing connection

@sorscode
Copy link
Contributor

Post your code? I'll try and duplicate.

@me-no-dev
Copy link
Member

i see openSSL there, you are not connecting to HTTPS correct?

@me-no-dev
Copy link
Member

@espuser you know what? You might be correct! Destruct was not closing the client. Could you please try the latest commit?

@espuser
Copy link
Author

espuser commented Nov 29, 2016

Hi,
the client runs without client.stop() now, but since You use the latest libs for WiFi from espressif I have the same problem as with the espressif/esp-idf toolchain, my esp32 NodeMCU cyclic reboots (about every 30 sec) or hangs
BR

@me-no-dev
Copy link
Member

There are lots of thing being worked on the network stack on IDF. Soon it will all be working :)

@me-no-dev
Copy link
Member

BTW pinMode time depends on which pin you apply it too. If it's an RTC pin, it's 2.6 us, if not it's 0.744us

@espuser espuser closed this as completed Dec 7, 2016
Lzw655 pushed a commit to Lzw655/arduino-esp32 that referenced this issue Oct 12, 2023
Allows the bootloaders to be flashed with esptool v4 on devices with different size flash
brentru pushed a commit to adafruit/arduino-esp32 that referenced this issue Oct 22, 2024
fixing missing arduino:avr dep for adafruit:avr
darkxst pushed a commit to darkxst/arduino-esp32 that referenced this issue Dec 5, 2024
* Add c2 (espressif#70)

* Adjust components and build strategy

* enable rev 2 chips (preview)

---------

Co-authored-by: me-no-dev <[email protected]>
Co-authored-by: Jan Prochazka <[email protected]>
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

3 participants