2016-03-07 32 views
1

我试图从& D.启用通知/指示BLE(UA-651)GATTTOOL

首先从UA-651-BLE得到血Presure DATAS,深化发展一个C++应用程序使用Qt之前,我多亏了Gatttool,才会尝试做这项工作。 该设备是成对的,我可以连接我的电脑,旨在读取值。

但是如果我觉得不错,要读取血压数据,我需要指示&通知。 我该怎么做?

非常感谢您的回复,我真的需要帮助!

+0

设置CCC价值为0x2。 – kaylum

+0

坦克为你的回复,但如何?我尝试了很多东西。 –

+0

'gatttool -b -I'以交互模式启动工具。然后从提示中连接'连接到设备。然后'char-write-req 02'。 – kaylum

回答

0

感谢对Kaylum,我现在能读我想要的东西:

gatttool -b <mac_address> -I //to start the tool in interactive mode. Then connect from the prompt to connect to the device. Then 
char-write-req <CCC handle> 02