This application is the simplest one to utilize our mesh networking stack. It just joins your device to the unsecure 6LoWPAN-ND network. The canonical source for this example lives at

Example mesh application for Mbed OS

With this application, you can use our mesh networking stack. This application joins your device to the unsecure 6LoWPAN-ND network.


Building with Mbed CLI

If you'd like to use Mbed CLI to build this offline, then you should refer to the Mbed CLI documentation. The instructions here relate to using the Mbed Online Compiler

  1. Click `Import this application` button.
  2. Change the channel settings: See the file `mbed_app.json` for an example of defining an IEEE 802.15.4 channel to use.
  3. Compile the application

A binary is generated at the end of the build process.

Connect the RF shield to the board

By default, we are using the Atmel AT86RF233, which you can purchase. Place the shield on top of your board, and power it on.

Program the target

Drag and drop the binary to the target to program the application.

Update the firmware of the border router.

You can read the instructions on updating the firmware of your board working as 6LoWPAN border router here.

Please remember to connect the Ethernet cable between the border router and your router. Then, power up the board.


As soon as both the border router and the target are up and running, you can verify the correct behavior. Open a serial console, and see the IP address obtained by the device.

Note: This application uses a baud rate of 115200.


connected. IP = 2001:db8:a0b:12f0::1

You can use this IP address to ping from your PC and verify that the connection is working correctly.

Changing the radio driver (optional)

To run a 6LoWPAN-ND network, you need a working RF driver for Nanostack. This example uses the Atmel AT86RF233 by default.

To change the RF driver:

  1. Uninstall the Atmel RF driver.
  2. Install the new driver. (For example, for the FRDM-CR20A radio shield based on the MCR20A device.)
  3. Recompile your application.

Revisions of

Revision Date Message Actions
126:48203bfdf420 2 months ago Merge pull request #273 from ARMmbed/update_master File  Diff  Annotate
121:dd070767f365 6 months ago Update readme with wi-sun information (#242) File  Diff  Annotate
116:b2f0131722a0 9 months ago Merge pull request #235 from ARMmbed/mbed-os-5.11.0-oob File  Diff  Annotate
106:18f64141d066 11 months ago Fix links in File  Diff  Annotate
105:0b691b27144a 12 months ago Merge branch 'mbed-os-5.10.0-oob' File  Diff  Annotate
103:9982165eb577 12 months ago Revert "Remove external RF drivers" File  Diff  Annotate
102:77951b775883 12 months ago Remove sd-driver and update README (#213) File  Diff  Annotate
101:eaeb5760ee04 12 months ago Remove external RF drivers File  Diff  Annotate
92:66d4b2417747 14 months ago Update README known issues File  Diff  Annotate
91:6effd7785401 14 months ago Update libraries and README File  Diff  Annotate
87:a6a7b64f4f48 15 months ago Merge remote-tracking branch 'origin/mbed-os-5.9.0-oob' File  Diff  Annotate
85:7c874d127eff 15 months ago Fix links in File  Diff  Annotate
78:fc7a81fd524c 18 months ago Merge branch 'mbed-os-5.8.0-oob' File  Diff  Annotate
68:2330fbeb4926 21 months ago Merge branch 'mbed-os-5.7.0-oob' File  Diff  Annotate
66:30f2c1317e6d 21 months ago Update README for mbed-os 5.7 File  Diff  Annotate
55:63aa128e8a80 24 months ago Remove mbed gateway File  Diff  Annotate
53:82a191e2c133 24 months ago New ram configuration (#129) File  Diff  Annotate
52:27692043e962 2017-09-20 Initial commit. File  Diff  Annotate
49:425a1889434d 2017-03-09 Merge branch 'oob_test_mbed-os-5.4' File  Diff  Annotate
19:f55c7983f8ab 2016-10-21 Updating mbed-os to mbed-os-5.2.0-rc4 File  Diff  Annotate
17:ee2610e1cb78 2016-10-02 Merge pull request #22 from ARMmbed/mbed-os-5.2-rc File  Diff  Annotate
13:4a0466077538 2016-08-25 Minor editorial changes. File  Diff  Annotate
10:5819b0a88423 2016-08-05 Removing Nucleo F401RE Doc Ref File  Diff  Annotate
8:f02c15c5e51e 2016-08-04 Merge pull request #17 from ARMmbed/removing_issues_section File  Diff  Annotate
7:0540282551e7 2016-08-04 Merge pull request #16 from ARMmbed/multi_plat_doc_update File  Diff  Annotate
6:2e2035344aa6 2016-08-03 Merge pull request #13 from ARMmbed/doc_update File  Diff  Annotate
0:bde1843b9885 2016-07-25 Update example home repo at File  Diff  Annotate