Giter Club home page Giter Club logo

Comments (10)

me-no-dev avatar me-no-dev commented on July 28, 2024

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

from arduino-esp32.

espuser avatar espuser commented on July 28, 2024

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

from arduino-esp32.

me-no-dev avatar me-no-dev commented on July 28, 2024

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

from arduino-esp32.

espuser avatar espuser commented on July 28, 2024

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

from arduino-esp32.

sorscode avatar sorscode commented on July 28, 2024

Post your code? I'll try and duplicate.

from arduino-esp32.

me-no-dev avatar me-no-dev commented on July 28, 2024

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

from arduino-esp32.

me-no-dev avatar me-no-dev commented on July 28, 2024

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

from arduino-esp32.

espuser avatar espuser commented on July 28, 2024

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

from arduino-esp32.

me-no-dev avatar me-no-dev commented on July 28, 2024

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

from arduino-esp32.

me-no-dev avatar me-no-dev commented on July 28, 2024

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

from arduino-esp32.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.