This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2540怎么获取最新的外部设备数据

Other Parts Discussed in Thread: CC2540

HI,

     我现在使用的cc2540 mini开发套件。在看KeyFobDemo-cc2540工程的时候,在我通过uuid获取accelerometer的数据的时发现,我读出来的总是初始值。我看了相关代码,发现accelerometer更新值是在keyfobdemo.c的accelRead()里面更新的,调用accelRead()好像也只有在事件处理函数中才有调用。那么我怎么才在我通过uuid读取的时候获得最新的值,而不是初始值。