examples for SimpleSocket/EthernetInterface

Dependencies:   EthernetInterface SimpleSocket mbed-rtos mbed

Revision:
0:6dc3cfd058c6
--- /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