Timeline for How to pass Strem object to my class
Current License: CC BY-SA 4.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jan 30, 2023 at 9:49 | vote | accept | simon | ||
Jan 30, 2023 at 9:07 | answer | added | chrisl | timeline score: 2 | |
Jan 30, 2023 at 8:55 | comment | added | Juraj♦ | see arduino.stackexchange.com/questions/78719/… | |
Jan 30, 2023 at 8:48 | comment | added | Edgar Bonet |
Because, SerialUSB does have a method named begin . Some Stream -derived classes can have such a method, It's just not something you can expect from any Stream object.
|
|
Jan 30, 2023 at 8:44 | comment | added | simon |
Ok but why I can do SerialUSB.begin(115200) in my sketch ? @EdgarBonet
|
|
Jan 30, 2023 at 8:43 | comment | added | Edgar Bonet |
The compiler said: "you can't because the Stream class has no method named begin ". Does this answer your question?
|
|
Jan 30, 2023 at 8:35 | history | asked | simon | CC BY-SA 4.0 |