All is good. But when I try to write:system("echo -e "\xFF\x08\x01" >> /dev/ttyACM0");
It gives me syntax error. Do you guys have any idea why this is happening, and how I can espace this so that the command works? I suspect that the \x00 is a null byte that is terminating the command , thus the error. But how to fix?system("echo -e "\xFF\x08\x00" >> /dev/ttyACM0");
In reply to null byte issue in system command by donald99
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |