Hello,

I modified the TestSerial application to let a senor node sense temperature
and send the temperature to a PC over serial. But I got the following
warnings and the Java application running on the PC didn't receive the
temperature readings.

warning: `Read.readDone' called asynchronously from `I2CBasicAddr.writeDone'
warning: non-atomic accesses to shared variable `temp':
warning:   non-atomic read

Could anybody please tell me how to get rid of those warnings or how to
atomicly access a shared variable?

Thanks in advance!

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

Reply via email to