现在已经用蓝牙4.0模块成功与sensortag连接上了。sensortag作为从机,蓝牙模块作为主机。想获取sensortag的传感器数据。没有思路,求思路。是按照每个传感器的服务UUID来找到数据么?
Yan:
hi, shmily,
你可以参考TI提供的sensortag android 上的代码:http://processors.wiki.ti.com/index.php/Bluetooth_SensorTag?INTC=SensorTag&HQS=sensortag-wiki#Android
并结合CC2541 SimpleBLECentral 工程,进行开发。
你的理解是对的。首先通过每个传感器服务的UUID得到相应的attribute handle,然后通过这个handle对各个服务的数据进行读取。
TI中文支持网


