Skip to content

copyRepyAlt()

CreateiveRobotics edited this page Mar 7, 2020 · 2 revisions
void copyRepyAlt(bool sState)

Enable or disable copying of outgoing characters to the alt stream. When enabled, any use of the print or write methods will be applied to both the outgoing stream and the alt stream.

This can be used for debugging so that incoming commands and the responses can be monitored, or the alt stream could be a file used to log a command session.

Example:

copyRepyAlt(ON); //Enable copying printing to the alt stream

copyRepyAlt(OFF); //Disable copying printing to the alt stream
Clone this wiki locally