Sorry, my mistake. The interface is correct. It's was on the other component
that was lacking the uses interface. Sorry about that. A beginner's error I
presume.

Inderjit

On 4/10/07, Inderjit Singh <[EMAIL PROTECTED]> wrote:

Hi.

I'm trying to create a component as following:

THE INTEFACE:
interface TimeSync
{
  command result_t synchronize(uint16_t time);
  command uint16_t getTime();
  command bool timeSet();
}

THE COMPONENT:
configuration TimeSyncC
{
  provides interface TimeSync;
  provides interface StdControl;
}

implementation
{
  components Main,
   ...
   ...
  StdControl = TimeSyncM;
  TimeSync = TimeSyncM;
}

THE MODULE:

module TimeSyncM
{
  provides
  {
    interface StdControl;
     interface TimeSync;
  }
  uses
  {
   ...
  }
}

implementation
{
...
}

But when I try to wire it with another component I get compiling error:
cannot find `TimeSync'

I can't get my head around what the problem is. Anyone?

Regards,
Inderjit


_______________________________________________
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to