Linux code:
main.cpp (900 Bytes)
hFramework code:
void hMain(void)
{
sys.setLogDev(&Serial);
for (;;)
{
char d[200];
int r = Serial.read(d, 200, 1000);
if (r > 0)
{
printf("read %d\r\n", r);
printf("data: %s\r\n", d);
LED2.toggle();
}
}
}