File tree Expand file tree Collapse file tree 3 files changed +44
-0
lines changed
apps/tests/blip/TestNeighborDiscovery Expand file tree Collapse file tree 3 files changed +44
-0
lines changed Original file line number Diff line number Diff line change 1+ COMPONENT =TestNDAppC
2+ include $(MAKERULES )
3+ CFLAGS += -DIN6_NO_GLOBAL -DLIB6LOWPAN_HC_VERSION=-1
4+ CFLAGS += -DNODE_HOST
Original file line number Diff line number Diff line change 1+ /* * Test the link-local communication in the blip stack
2+ */
3+ configuration TestNDAppC {
4+
5+ } implementation {
6+ components MainC, LedsC;
7+ components TestNDC;
8+ components NDC;
9+
10+ TestNDC.Boot -> MainC;
11+ TestNDC.SplitControl -> NDC;
12+ TestNDC.Leds -> LedsC;
13+
14+
15+ }
Original file line number Diff line number Diff line change 1+
2+
3+ #include < lib6lowpan/ip.h>
4+
5+ module TestNDC {
6+ uses {
7+ interface Boot;
8+ interface SplitControl;
9+ interface Leds;
10+ }
11+ } implementation {
12+
13+ event void Boot.booted () {
14+ call SplitControl.start ();
15+
16+ }
17+
18+ event void SplitControl.startDone (error_t e) {
19+ call Leds.led0On ();
20+ }
21+
22+ event void SplitControl.stopDone (error_t e) {}
23+
24+
25+ }
You can’t perform that action at this time.
0 commit comments