Part of a series of examples on the different ways of using ports. See Port power tutorial.
#include <stdio.h>
int ct = 0;
while (true) {
ct++;
printf(
"Got response: %s\n", in.
toString().c_str());
} else {
printf("No response\n");
}
}
return 0;
}