Quantcast
Channel: 蓝牙论坛 - 最近的话题
Viewing all articles
Browse latest Browse all 7485

Notify 与 Indicate的区别

$
0
0

根据TI BLE1.4.0的介绍,Indicate是有ACK的。

Q1:那么如果我用Notify,是否可能会丢数据呢?

比如我用一个charisticrist 连续notify100个数据,中间是否有可能丢数据?

我实验了很多次,也没有发现有丢数据。

Q2:Indicate怎么使用呢?我看了thermometer的例子,但是感觉他仅仅是在定义

static gattAttribute_t thermometerAttrTbl[] = 时,用了GATT_PROP_INDICATE属性。

但在实际发送时,仍然用的是GATT_Notification啊


Viewing all articles
Browse latest Browse all 7485