Hello All,

I simulate an application under TOSSIM and tinyos2.1.
I used a python file in order to get the value of some variables ( variable
inspection)
I try to follow the tutorial (TOSSIM lesson).
The application is compiled successfully
But when I want to get the value of some variables, I get a strange caracter
.
This is a part of my code in python:

m = t.getNode(2)

for i in range(0, 500):

t.runNextEvent();

v = m.getVariable("proC.received_data_num")

v2 = m.getVariable("proC.authenticated_data_num");

v3 = m.getVariable("proC.authentication_delay");

for i in range(0, 100000):

t.runNextEvent();

print "number of received packet is : <", v.getData(), ">\nnumber of
authenticated packet: <", v2.getData(), ">\nauthentication delay :
<",v3.getData(), ">"

In the file proC.nc , I declared a variable : long long
authentication_delay.

When I run the python file, I don't get the value of authentication delay ,
it mentions a strange caracter ( authentication delay: < O >

How can I get this value?  What is the problem?

Thanks,

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

Reply via email to