I have made a application which can make communication between Arduino and phone. But I have a problem that is, it can be only send several letters in a one characteristic.
public boolean writeData(BluetoothGattCharacteristic characteristic, byte[] data){
if(btAdapter == null || btGatt == null){
logAdapter.add("BluetoothAdapter not initialized.");
return false;
}
characteristic.setValue(data);
return btGatt.writeCharacteristic(characteristic);
}
if the data is over 1MB, Do I have to make more BluetoothGattcharacteristic and add on BluetoothGattService? or is there are another better way to make it work??