Skip to content
This repository was archived by the owner on Mar 17, 2025. It is now read-only.
This repository was archived by the owner on Mar 17, 2025. It is now read-only.

investigate non blocking connect #29

Open

Activity

proppy

proppy commented on Dec 29, 2015

@proppy
ContributorAuthor

A non blocking implementation would add a new connect_async function or a flag with a different callback and no yield/schedule call.

And the http connect version could return early rather than erroring:
https://github.com/esp8266/Arduino/blob/master/libraries/ESP8266HTTPClient/src/ESP8266HTTPClient.cpp#L670-L673

Links2004

Links2004 commented on Dec 30, 2015

@Links2004

the HTTP client changes are more complex then just return.
connect is never called form outside the class:
https://github.com/esp8266/Arduino/blob/master/libraries/ESP8266HTTPClient/src/ESP8266HTTPClient.h#L192

its only called in sendRequest
https://github.com/esp8266/Arduino/blob/master/libraries/ESP8266HTTPClient/src/ESP8266HTTPClient.cpp#L298

the connect shut be fast if the server is there,
only when there is no server it can block for a longer time until:
https://github.com/esp8266/Arduino/blob/342c4ae6fb847bfc787f80b89a2bb888d942dc32/libraries/ESP8266WiFi/src/WiFiClient.cpp#L149
is called.

proppy

proppy commented on Dec 30, 2015

@proppy
ContributorAuthor

@Links2004 yes, I was planning to investigate exposing connect with #28

proppy

proppy commented on Jun 25, 2016

@proppy
ContributorAuthor
proppy

proppy commented on Jun 25, 2018

@proppy
ContributorAuthor

Note that this would be affected by #353.

added this to the 0.3 milestone on Jun 25, 2018
yhua537

yhua537 commented on Aug 16, 2018

@yhua537

Like the idea using ESPAsyncTCP(as I am using it for other connections), can I suggest use injection to allow us choosing which type of connection to use?

Also, should the scope of this library to a easier use of firebase API?

kiralikbeyin

kiralikbeyin commented on Mar 11, 2019

@kiralikbeyin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @proppy@Links2004@kiralikbeyin@yhua537

        Issue actions

          investigate non blocking connect · Issue #29 · FirebaseExtended/firebase-arduino