Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: main.cpp
- 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