Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/197.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android BLE三星:写入特性的问题_Android_Bluetooth Lowenergy_Samsung Mobile Sdk - Fatal编程技术网

Android BLE三星:写入特性的问题

Android BLE三星:写入特性的问题,android,bluetooth-lowenergy,samsung-mobile-sdk,Android,Bluetooth Lowenergy,Samsung Mobile Sdk,我有一些在Android 4.3(非三星)上运行良好的简单代码。当翻译成三星BLE SDK for

我有一些在Android 4.3(非三星)上运行良好的简单代码。当翻译成三星BLE SDK for<4.3时,我发现我可以阅读并收到通知,但我无法按照自己的特点进行书写

BluetoothGattCharacteristic characteristic = mBluetoothGatt.getService(device_, UUID_SERVICE).getCharacteristic(UUID_CHARACTERISTIC);
characteristic.setValue(new byte[]{0x01});
mBluetoothGatt.writeCharacteristic(characteristic);

知道怎么了吗?我没有收到任何错误/异常。onCharacteristicWrite也没有被调用,在使用4.3设备进行检查时,我发现该特性没有改变。

出了什么问题:我必须留出更多的读写空间(200毫秒似乎可以正常工作)

嗨!在一些不同安卓版本的三星设备上,我也有同样的问题。你找到解决方案了吗?另一件有帮助的事情是:在uithread上执行读/写操作(看起来很奇怪,但工作正常)我已经在ui thread上执行写操作,但Samsung继续给我带来一些问题:/