George Djabarov / Mbed OS mbed-os-example-mesh-minimal
Revision:
0:bde1843b9885
Child:
1:24cff46332de
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Mon Jul 25 14:08:26 2016 +0300
@@ -0,0 +1,19 @@
+#include "mbed.h"
+#include "rtos.h"
+#include "NanostackInterface.h"
+
+LoWPANNDInterface mesh;
+Serial output(USBTX, USBRX);
+
+int main()
+{
+    output.baud(115200);
+    output.printf("\r\n\r\nConnecting...\r\n");
+
+    if (mesh.connect()) {
+        output.printf("Connection failed!\r\n");
+        return -1;
+    }
+
+    output.printf("connected. IP = %s\r\n", mesh.get_ip_address());
+}
\ No newline at end of file