Good day! I program to send data to a specific printer and I have a problem. I need to send tag packets to the printer.
Char s[]={ 0x05, 0x06, 0xD1, 0xE0, 0xEC, 0xE0, 0xF0, 0xE0 }; If set manually then everything works. But how do I correctly fill Char s [] from a variable?
The line feed option does not work:
std::string s6_str = "0x05, 0x06, 0xD1, 0xE0, 0xEC, 0xE0, 0xF0, 0xE0"; s6 = new char [s6_str.length()+1]; std::strcpy (s6, s6_str.c_str()); Tell me how to be! Thank you in advance!