Simple code for comunication via TCP between the mbed and PC.
Dependencies: EthernetInterface SimpleSocket mbed-rtos mbed
Fork of SimpleSocketExamples by
Diff: main.cpp
- Revision:
- 0:6dc3cfd058c6
- Child:
- 1:016774025718
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Mon Feb 04 09:29:18 2013 +0000 @@ -0,0 +1,13 @@ +#include "functions.h" + +int main() { + for (int i = 0; functions[i].name; i++) + printf("[%d] %s\n", i, functions[i]); + + printf("Select => "); + int n; + scanf("%d", &n); + printf("%d was selected, starting %s\n", n, functions[n].name); + + functions[n].func(); +} \ No newline at end of file