Whenever I add a line of code to one of my modules to signal an event I get an 
error pointing at the declaration of that signal saying it shouldn’t have 
parameters. Furthermore I get an error pointing at the line with the signal 
mentioning an implicit declaration. 

Here’s the line of code in the transportM module file:
signal transport.closed(s,CLOSE_FAILEDTOCONNECT);

The event declaration in an interface called “transport”:
event void closed(socket closed, CloseReason reason);

The relevant parts of the configuration file:
configuration transportC{
    provides interface transport;
}
implementation{
    components transportM;
    components new TimerMilliC() as transportUpdate;

    transportM.transportUpdate -> transportUpdate;
    
    transport = transportM;
}

And finally the errors as they appear:
/home/fire/workspace/Project 3/src/transport/transport.nc:24: error: expected 
')' before 'closed'
/home/fire/workspace/Project 3/src/NodeM.nc:228: error: expected ')' before 
'closed'
/home/fire/workspace/Project 3/src/transport/transport.nc:24: error: expected 
')' before 'closed'
/home/fire/workspace/Project 3/src/NodeM.nc:228: error: expected ')' before 
'closed'
/home/fire/workspace/Project 3/src/transport/transport.nc:24: error: expected 
')' before 'closed'
/home/fire/workspace/Project 3/src/transport/transportM.nc: In function 
'transportM$transport$readTransportPacket':
/home/fire/workspace/Project 3/src/transport/transportM.nc:235: warning: 
implicit declaration of function 'transportM$transport$closed'

Any help or ideas would be appreciated.
Thank you,
Anthony

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

Reply via email to