Hi all,
I am trying to do something very very simple
Get a notification when the telosb user key is pressed and turn one of the 
three leds on.
It does not matter which one exactly. It is more to help me learn what to do 
and what not.

my 

ButtonC.nc file looks like

module ButtonC {
        uses interface Boot;
        uses interface Notify;

}
implementation {
        event void Boot.booted()
        {
          //The entry point of the program
        }

        event void Notify.notify( button_state_t state ) {
        }
  }



and my ButtonAppC.nc looks like


configuration ButtonAppC{
}
implementation{
        components ButtonC, MainC, UserButtonC;

        ButtonC.Boot -> MainC;
//      ButtonC.Notify -> UserButtonC;
}

make telosb returns me the following:

In file included from ButtonAppC.nc:4:
In component `ButtonC':
ButtonC.nc:3: too few arguments to interface `Notify'
ButtonC.nc:12: syntax error before `state'
ButtonC.nc:12: conflicting types for `Notify.notify'
/opt/tinyos-2.1.1/tos/interfaces/Notify.nc(ButtonC):74: previous declaration of 
`Notify.notify'

Can someone explain me what I am missing still here?

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

Reply via email to