无代码安卓BLE特征总是返回相同的值



我执行一个简单的写命令

atWriteCharacteristic.setWriteType(BluetoothGattCharacteristic.WRITE_TYPE_DEFAULT);
atWriteCharacteristic.setValue("ATI"); // no matter what value I put here always same response
boolean didWrite = bluetoothGatt.writeCharacteristic(atWriteCharacteristic);

但当我尝试通过阅读时

bluetoothGatt.readCharacteristic(atReadCharacteristic);

我总是得到同样的回答";OK";这是不正确的,应该给我一个应用程序版本。我在onCharacteristicRead回调函数中得到响应
以下是无代码应用程序的链接:http://lpccs-docs.dialog-semiconductor.com/UM-140-DA145x-CodeLess/howToUse.html#software-设置

我已经解决了这个问题。问题要简单得多。是我没有在每个";AT";命令因此,命令需要具体采用以下格式:;AT";每个后面都有空格。

最新更新