Skip to content

Commit

Permalink
PR for bleeding-edge GattStatus codes (#779)
Browse files Browse the repository at this point in the history
  • Loading branch information
ariccio committed May 21, 2022
1 parent 15987fd commit 3dbb67c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
/**
* Exception emitted when the BLE link has been interrupted as a result of an error. The exception contains
* detailed explanation of the error source (type of operation) and the code proxied from
* the <a href="https://android.googlesource.com/platform/external/bluetooth/bluedroid/+/android-5.1.0_r1/stack/include/gatt_api.h">
* the <a href="https://cs.android.com/android/platform/superproject/+/master:packages/modules/Bluetooth/system/stack/include/gatt_api.h">
* Android system</a>.
*
* @see com.polidea.rxandroidble2.RxBleDevice#establishConnection(boolean)
Expand Down Expand Up @@ -70,7 +70,7 @@ private static String createMessage(@Nullable BluetoothGatt gatt, int status, Bl

final String statusDescription = GattStatusParser.getGattCallbackStatusDescription(status);
final String link
= "https://android.googlesource.com/platform/external/bluetooth/bluedroid/+/android-5.1.0_r1/stack/include/gatt_api.h";
= "https://cs.android.com/android/platform/superproject/+/master:packages/modules/Bluetooth/system/stack/include/gatt_api.h";
return String.format("GATT exception from %s, status %d (%s), type %s. (Look up status 0x%02x here %s)",
LoggerUtil.commonMacMessage(gatt), status, statusDescription, bleGattOperationType, status, link);
}
Expand Down

0 comments on commit 3dbb67c

Please sign in to comment.