【发布时间】:2014-04-29 23:33:36
【问题描述】:
我正在尝试在 Linux 上使用 gatttool 连接到设备。我运行hcitool lescan 来获取设备MAC 地址,然后运行gatttool -i hci1 -b <macaddr> -t random -I。然后我输入connect。我看到 [CON] 符合预期,但问题是它在大约 1 秒后自动消失,没有错误消息。我一直在寻找几个小时,但我不明白为什么会这样?
注意:我在运行gatttool 之前运行了一次hcitool lecc,只是为了尝试它,但在我看来,从那时起,gatttool 连接不再正常工作(如上所述的意外断开连接)。是因为我用过hcitool lecc吗?如果是,有没有办法“撤消”它?
【问题讨论】: