Hi,

Thanks for your help again, Roberto.

We understand that if we wired Timer.StdControl to our application, we have to call TimerControl.init in our code. But, if we did not wire to it Timer is wired to Realmain, then:

When is StdControl.init() (which StdControl belongs to TimerC) called? What is its time?

In Realmain there is a call StdControl.init(), but we suposed it was a StdControl belongs to our application. Ous question is: is this line (call StdControl.init();) in Realmain belongs to our application? or also is calling the StdControl of the Timer?

We appreciate your suggestions.

Anyway, thanks for your help,

Andres



From: Roberto <[EMAIL PROTECTED]>
To: Andres Aberasturi <[EMAIL PROTECTED]>, [email protected]
Subject: Re: [Tinyos-help] Main.StdControl -> TimerC;
Date: Fri, 26 May 2006 09:53:02 +0000

>> But we still have a doubt. What kind of errors?
in general, you can forget to add in yourApp.StdControl.init() to call
timer stdcontrol.init, so it's better wiring it to Main.stdcontrol. In
fact if you miss it the ncc compiler not always makes you a warning or
an error, so you cannot find easily the error.

>> We have other question. When your application begins from Realmain,
StdControl.init is called, but it should be the init of your
application, or is it the init for Timer too? If it is not, where is >>
called StdControl.init of Timer?

only if you wired timer.stdcontrol to your app you have to call
timer.init in yourApp.stdcontrol

Roberto


_________________________________________________________________
Un amor, una aventura, compañía para un viaje. Regístrate gratis en MSN Amor & Amistad. http://match.msn.es/match/mt.cfm?pg=channel&tcid=162349

_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to