How to access node id in contiki?

  • #include “sys/node-id.h” add this header file
  • Print as follows node_id
  • PRINTF(ā€œ\n Node ID %d \nā€,node_id);