In Contiki 3.0 it was possible to change the RPL objective function by modifying the file Makefile.rpl
.
How to do this in Contiki 3.x or Contiki-NG?
In Contiki 3.0 it was possible to change the RPL objective function by modifying the file Makefile.rpl
.
How to do this in Contiki 3.x or Contiki-NG?
You can do this through modifying the compile-time configuration. For example, to switch from the default RPL objective function (MRHOF) to OF0, add these lines to
project-conf.h
:You can then verify that you are using the selected objective function with the
viewconf
tool: