Hi, I don't understand, how I should print a string with special characters.
I want to send a string with the software interface to another device.
The signs to be sent are: "=
and 1$
is this correct?
lap_counter_serial.print('"=');
or this
lap_counter_serial.print("1$");
Thanks for your help.
BR
What happens when you try? What is the device? Different devices display characters differently.
Also, why do you consider "=" a special character? It seems pretty standard to me, it's on every keyboard and ASCII display I've ever seen.
This
lap_counter_serial.print('"=');
is not correct because single quote marks indicate a single character.
If you need to send a formatting character like (") then you use a standard C escape sequence. Look it up.
Your topic was MOVED to its current forum category as it is more suitable than the original
Serial.print("\"=");
Serial.print("1$");
Thanks.
The escape sequence might work.
It's guaranteed to work by the C/C++ language standard.