Skip to content

Commit

Permalink
Fixed BLE error for ANdroid 14
Browse files Browse the repository at this point in the history
  • Loading branch information
izivkov committed Mar 2, 2024
1 parent 5549de2 commit 303c657
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 21 deletions.
3 changes: 1 addition & 2 deletions api/.idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 17 additions & 12 deletions api/.idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 5 additions & 7 deletions api/src/main/java/org/avmedia/gshockapi/ble/IGShockManager.kt
Original file line number Diff line number Diff line change
Expand Up @@ -157,14 +157,12 @@ private class GShockManagerImpl(
writeCharacteristic = getCharacteristic(
CasioConstants.CASIO_ALL_FEATURES_CHARACTERISTIC_UUID,
)
// inform the caller that we have connected
onConnected(gatt.device.name, gatt.device.address)

ProgressEvents.onNext("ConnectionSetupComplete", gatt.device)
onConnected(device.name, device.address)

// new
ProgressEvents.onNext("DeviceName", gatt.device.name)
ProgressEvents.onNext("DeviceAddress", gatt.device.address)
// inform the caller that we have connected
ProgressEvents.onNext("ConnectionSetupComplete", device)
ProgressEvents.onNext("DeviceName", device.name)
ProgressEvents.onNext("DeviceAddress", device.address)

return true
}
Expand Down

0 comments on commit 303c657

Please sign in to comment.