Hi,

We are trying to add our own functions to Tossim, but not sure how to go
about it. We traced how "runNextEvent"  flows and based on that added a
function to Tossim.i, Tossim.h, Tossim.c, sim-tossim.h and sim-tossim.c.
But we get an error when executing the program. Not sure what we are
missing. Please help us.

Error message (function name is returnPower):
>>> t.returnPower(2,3)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "TOSSIM.py", line 241, in <lambda>
    __getattr__ = lambda self, name: _swig_getattr(self, Tossim, name)
  File "TOSSIM.py", line 34, in _swig_getattr
    raise AttributeError,name
AttributeError: returnPower

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

Reply via email to