]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - apps/tests/TestNetwork/TestNetworkC.nc
Updated TestDissemination and TestNetwork to start the dissemination service manually...
[tinyos-2.x.git] / apps / tests / TestNetwork / TestNetworkC.nc
index a2ba9e11711dcc6dff9d20da514f2a4171a0f7fb..63dce3ba4d04d48cc2bcb46521e4d16189fa8ac7 100644 (file)
@@ -19,6 +19,7 @@ module TestNetworkC {
   uses interface SplitControl as RadioControl;
   uses interface SplitControl as SerialControl;
   uses interface StdControl as RoutingControl;
+  uses interface StdControl as DisseminationControl;
   uses interface DisseminationValue<uint16_t> as DisseminationPeriod;
   uses interface Send;
   uses interface Leds;
@@ -63,6 +64,7 @@ implementation {
       call RadioControl.start();
     }
     else {
+      call DisseminationControl.start();
       call RoutingControl.start();
       if (TOS_NODE_ID % 500 == 0) {
        call RootControl.setRoot();