Simple code for comunication via TCP between the mbed and PC.
Dependencies: EthernetInterface SimpleSocket mbed-rtos mbed
Fork of SimpleSocketExamples by
main.cpp
- Committer:
- yamaguch
- Date:
- 2013-02-04
- Revision:
- 0:6dc3cfd058c6
- Child:
- 1:016774025718
File content as of revision 0:6dc3cfd058c6:
#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(); }