Hi,
I am looking for the equivalent base class Stream Arduino in ESP-IDF. As far as I understand Stream is creating a class for read only from UART buffer. How can I create equivalent function in ESP-IDF?
Thanks
Stream Function of Arduino equivalent in Arduino
Re: Stream Function of Arduino equivalent in Arduino
Are you programming in C++? If so, I believe that the standard library functions of C++ are available to you which include I/O streaming:
Have a google on "C++ and iostreams".
For example:
https://www.cprogramming.com/tutorial/c ... reams.html
I have successfully used these with strings and files but haven't tested yet with UART. In theory it should "just work".
Have a google on "C++ and iostreams".
For example:
https://www.cprogramming.com/tutorial/c ... reams.html
I have successfully used these with strings and files but haven't tested yet with UART. In theory it should "just work".
Free book on ESP32 available here: https://leanpub.com/kolban-ESP32
Re: Stream Function of Arduino equivalent in Arduino
Hi,kolban wrote:Are you programming in C++? If so, I believe that the standard library functions of C++ are available to you which include I/O streaming:
Have a google on "C++ and iostreams".
For example:
https://www.cprogramming.com/tutorial/c ... reams.html
I have successfully used these with strings and files but haven't tested yet with UART. In theory it should "just work".
Thank you for your reply, I make it other way around but I dont remember now how I did it. But in the future I will make as you posted.
Thanks again
Re: Stream Function of Arduino equivalent in Arduino
Hi,
I am looking exactly the same stuff.
Can you share the solution for that?
I am looking exactly the same stuff.
Can you share the solution for that?
Re: Stream Function of Arduino equivalent in Arduino
is there anything ready to use for streaming data from uart?
Who is online
Users browsing this forum: No registered users and 265 guests