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