Contiki simulation of WSN network