Being more specific, I'm using the command toNetworkLayer(createRadioCommand(SET_STATE,SLEEP)) to turn off the radios (it turns off all nodes but 0 (sink)), however I need to turn off only one or another specific radio and sink. For example, in a network with 5 nodes (0,1,2,3,4 and 5), I wanted to turn off radio 0 and 2 at a certain point in time. I tried using the same command, passing the node value (toNetworkLayer(createRadioCommand(SET_STATE,SLEEP),,"0")), but it didn't go through make.
I didn't find another reference in the manual. If it is not possible to switch between network nodes, would it be possible to turn the sink on and off (node 0)?
Please kindly ask for your help.