Skip to content

ESPLwIPClient setTimeout conflicts with Stream setTimeout #5558

Closed
@JAndrassy

Description

@JAndrassy

ESPLwIPClient::setTimeout conflicts with Stream::setTimeout

the classes hierarchy is Print <- Steam <- Client <- ESPLwIPClient <- WiFiClient

void setTimeout(unsigned long timeout); // sets maximum milliseconds to wait for stream data, default is 1 second

virtual int setTimeout(uint32_t seconds) = 0;

Activity

rin67630

rin67630 commented on Aug 18, 2021

@rin67630

+1
That bug has hard consequences and prevents me to control my ESP32 devices over the network since a stream will timeout upon a manual input and
client.setTimeout(60000);
has no effect.
Please categorize it to a high priority.
Besides that, it is not admissible that ESP32 and ESP8266 behave that differently on standard methods.

VojtechBartoska

VojtechBartoska commented on Mar 30, 2022

@VojtechBartoska
Contributor

Hello @JAndrassy, sorry for late reply. We will take a look on this if we can fix this.

moved this from Todo to Under investigation in Arduino ESP32 Core Project Roadmapon Apr 20, 2022
P-R-O-C-H-Y

P-R-O-C-H-Y commented on Apr 25, 2022

@P-R-O-C-H-Y
Member

Hi @JAndrassy , @rin67630
Can you provide some sketch, so I can test and fix that? :) Thanks

JAndrassy

JAndrassy commented on Apr 25, 2022

@JAndrassy
ContributorAuthor

so you should not change the Arduino API (Stream.h). I don't know what for is the other setTimeout but it should be removed or renamed

38 remaining items

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

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions

    ESPLwIPClient setTimeout conflicts with Stream setTimeout · Issue #5558 · espressif/arduino-esp32