[Tinyos-help] how to access shared variable

2012-01-17 Thread Qian Li
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

Re: [Tinyos-help] how to access shared variable

2012-01-17 Thread C.
Hello, > warning: `Read.readDone' called asynchronously from > `I2CBasicAddr.writeDone' One fix would be to call a task from the I2CBasicAddr.writeDone to signal the Read.readDone event, instead of how it is actually done. > warning: non-atomic accesses to shared variable `temp': > warning: no