Pebble 2: Also honor the mtu when client gets a change reported

Should help older LE Pebbles
here
Andreas Shimokawa 2016-11-21 17:29:16 +01:00
parent 647b67cfca
commit eb052cead3
1 changed files with 1 additions and 0 deletions

View File

@ -61,6 +61,7 @@ class PebbleGATTClient extends BluetoothGattCallback {
if (characteristic.getUuid().equals(MTU_CHARACTERISTIC)) {
int newMTU = characteristic.getIntValue(FORMAT_UINT16, 0);
LOG.info("Pebble requested MTU: " + newMTU);
mPebbleLESupport.setMTU(newMTU);
} else {
LOG.info("onCharacteristicChanged()" + characteristic.getUuid().toString() + " " + GB.hexdump(characteristic.getValue(), 0, -1));
}