Anirudha Deshpande
Lurker
I am working on an android app where I am using android BLE api for connecting to sensor devices.Things are going good but I am connecting 4 BLE h/w devices with my android app but when I try to write some data on all 4 BLe devices at same time it only writes data on a single device and I can't write data on all devices simultaneously.
Here is my code to write data on single BLE device:
if(btWriteGattChar == null)
return;
btWriteGattChar.setWriteType(BluetoothGattCharacteristic.WRITE_TYPE_NO_RESPONSE);
btWriteGattChar.setValue(dat);
mBluetoothGatt[tabIndex].writeCharacteristic(btWriteGattChar);
The above code works find for single BLE device but it won't allow me to write the same data on all rest of devices.
Please let me know where I am doing wrong step to write same data on multiple BLE devices.
Here is my code to write data on single BLE device:
if(btWriteGattChar == null)
return;
btWriteGattChar.setWriteType(BluetoothGattCharacteristic.WRITE_TYPE_NO_RESPONSE);
btWriteGattChar.setValue(dat);
mBluetoothGatt[tabIndex].writeCharacteristic(btWriteGattChar);
The above code works find for single BLE device but it won't allow me to write the same data on all rest of devices.
Please let me know where I am doing wrong step to write same data on multiple BLE devices.
Last edited: