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

can't customize the WifiClient timeout for connect #3247

Closed
zli117 opened this issue May 16, 2017 · 2 comments
Closed

can't customize the WifiClient timeout for connect #3247

zli117 opened this issue May 16, 2017 · 2 comments

Comments

@zli117
Copy link

zli117 commented May 16, 2017

Basic Infos

Hardware

Hardware: NodeMCUv2, ESP-12E
Core Version: ?

Description

The WifiClient connect function hang the program

Settings in IDE

Doesn't matter

Sketch

#include <Arduino.h>

void setup() {

}

void loop() {
        WiFiClient client;
        IPAddress ipAddr;
        ipAddr.fromString(IPADDR);
        Serial.println("Trying to log");
        if (client.connect(ipAddr, PORT)) {
            client.print(msg);
            Serial.println("Logged");
        }
        // Have some other time critical stuff here. The connect takes too long if the ipaddress doesn't exist. 
}

@igrr
Copy link
Member

igrr commented May 17, 2017

This issue is tracked in #2120.

@igrr igrr closed this as completed May 17, 2017
@igrr igrr added the duplicate label May 17, 2017
@igrr
Copy link
Member

igrr commented May 17, 2017

Also #1420.

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

No branches or pull requests

2 participants