pschatzmann / arduino-audio-tools

Arduino Audio Tools (a powerful Audio library not only for Arduino)
GNU General Public License v3.0
1.49k stars 233 forks source link

@file streams-url_raw-serial.ino stop serial when file end #301

Closed aqildad-create closed 2 years ago

aqildad-create commented 2 years ago

@file streams-url_raw-serial.ino

This example continuously send data to serial plotter . How can we stop when the url file end or complete ? also can we stop in mid and then resume later ?

aqildad-create commented 2 years ago

also can we stop in the mid and then resume later ??

pschatzmann commented 2 years ago

Sure. Just make sure that the copy in the loop is not executed if you want pause. If you are new in programming you can consider to use the AudioPlayer class instead where you can call stop() and play()

aqildad-create commented 2 years ago

Is serial data same as data present in raw file or its factor to some value in order to plot in serial-PLOTER .

i want to compare this Serial data with original raw data present in file . . How to get back original data ?

pschatzmann commented 2 years ago

It is just convertering the binary values to a string so that you can read it. If you want to see the binary data instead you can use a HexDumpStream as output instead.