Skip to content
Harald edited this page Aug 14, 2019 · 1 revision

Tutorial: Hello, World!

A number of example applications for OSD-Contiki## are provided under examples in the root directory. In this tutorial, we will show how the hello-world example works. This classic programming example will just print "Hello, world" to the serial port periodically. Take a look at the hello-world.c file to see the source code. This example illustrates how processes are defined, and how to make sure that the operating system automatically starts a process after booting up. To find out how this example is implemented, see doc:programming.

Running the example as a native node

OSD-Contiki can be compiled as a native Unix process. This is useful for instance to implement the RPL native Border Router, and in general for testing: the networking stack of native nodes is reachable through a tun interface they create.

To run hello-world in native mode, type: