Sorry for posting twice, but the other one got confused because of the spam
filter.
I hope it will be tolerant with gmail addresses:
"Hello, all.
I'm having some problems on wiring components.
Picture this as an example:
I created an interface, say "A", with a function print().
Then, I created a module, say "AMod", which provides that interface "A" and
therefore it implements that print function.
Since this is something that I'm trying to add to TinyOS, I copied the
interface to tos/interfaces and the module to tos/system (more
specifically, I'm trying to add cryptographic modes - CBC, CFB, etc. - to
AES algorithm implemented by Sylvain on crypto package living on TinyOS
repository).
Ok. Now, I made an app (let's call it App) which uses interface "A" and it
will call "A".print(). I also created a configuration file to that app which
wires "App"."A" -> "AMod".
All good, things work out and that's just great.
Then, I wanted to add a "new layer": so now, instead of having my app
calling "A".print() I want it to call "B".print2(), being "B" a new
interface that I will create and will copy to tos/interfaces aswell.
Along with that new interface, I will also create a new module, say "BMod",
that will provide "B" and therefore will implement that B.print2() function.
But the code of print2() would be something like:
command void B.print2() {
call A.print();
}
So my "BMod" would have to use "A".
This took me to create a new configuration file having something like:
configuration {
}
implementation {
components BMod, AMod;
BMod.A -> AMod;
}
Unfortunately, this must be wrong, since I got the same error for the last 4
or 5 hours:
In component BMod:
In function B.print2:
A.print is not connected.
But I just can't get it. Why isn't it connected? I thought my configuration
file was connecting them.
Any ideas? Sorry for the long explanation, but I wanted to give you full
details.
Kind regards,
Pedro Nunes"
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help