Skip to content

Commit 7c92ba0

Browse files
author
Seppo Takalo
committed
Initial commit
0 parents  commit 7c92ba0

File tree

5 files changed

+31
-0
lines changed

5 files changed

+31
-0
lines changed

.mbed

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ROOT=.

atmel-rf-driver.lib

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
https://github.com/ARMmbed/atmel-rf-driver/#4fb763e3a34c8ad501c111c1e007854349ae18ed

main.cpp

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#include "mbed.h"
2+
#include "rtos.h"
3+
#include "NanostackInterface.h"
4+
5+
LoWPANNDInterface mesh;
6+
Serial output(USBTX, USBRX);
7+
8+
int main()
9+
{
10+
output.baud(115200);
11+
output.printf("\r\n\r\nConnecting...\r\n");
12+
13+
if (mesh.connect()) {
14+
output.printf("Connection failed!\r\n");
15+
return -1;
16+
}
17+
18+
output.printf("connected. IP = %s\r\n", mesh.get_ip_address());
19+
}

mbed-os.lib

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
https://github.com/ARMmbed/mbed-os/#bd4bfce7a2c8fec8325dbe768ddc43bec2f09c88

mbed_app.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"target_overrides": {
3+
"*": {
4+
"target.features_add": ["IPV6", "CLIENT"],
5+
"mbed-mesh-api.6lowpan-nd-channel": 15,
6+
"mbed-mesh-api.6lowpan-nd-channel-mask": "(1<<15)"
7+
}
8+
}
9+
}

0 commit comments

Comments
 (0)