From 58b7807ab9abfec3e937a22aae9312cd62c180c9 Mon Sep 17 00:00:00 2001 From: Francesco Lavra Date: Mon, 30 Dec 2019 09:25:00 +0100 Subject: [PATCH] Stream: make _timeout field and related methods protected This makes the Stream class implementation more aligned with the original Arduino Stream class, and allows using other libraries such as ArduinoHttpClient. --- cores/cc3200emt/ti/runtime/wiring/Stream.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cores/cc3200emt/ti/runtime/wiring/Stream.h b/cores/cc3200emt/ti/runtime/wiring/Stream.h index 19c11df..dbcbaed 100644 --- a/cores/cc3200emt/ti/runtime/wiring/Stream.h +++ b/cores/cc3200emt/ti/runtime/wiring/Stream.h @@ -37,7 +37,7 @@ readBytesBetween( pre_string, terminator, buffer, length) class Stream : public Print { - private: + protected: unsigned long _timeout; // number of milliseconds to wait for the next char before aborting timed read unsigned long _startMillis; // used for timeout measurement int timedRead(); // private method to read stream with timeout