Hi all, I have found this example to read data from console:
char in_char;
scanf("%c", &in_char);
if (in_char) {
// data read is ok....
}
It is working fine, but scanf() is blocking!
Any idea to have an easy implementation for a 'non blocking' code?