Skip to content

Commit

Permalink
- make deviceAddress non-nullable when selecting service UUID
Browse files Browse the repository at this point in the history
  • Loading branch information
bayosip committed Jul 20, 2023
1 parent 1c558c0 commit b3d26ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public interface WirelessDeviceConnector {
void enableNotificationsFor(String serviceUuid, String attrId, String descriptor, String deviceAddress);
void disableNotificationsFor(String serviceUuid, String attrId, String descriptor, String deviceAddress);
void connectAnotherDeviceSimultaneously(@NonNull Parcelable device, @Nullable String serviceUUID) throws Exception;
void selectServiceUsingUUID (@Nullable String deviceAddress, @NonNull String UUID);
void selectServiceUsingUUID (@NonNull String deviceAddress, @NonNull String UUID);
void connectToDeviceWithDeviceInfoFrom(@NonNull Intent intent);
void sendStringInstructionsToRemoteDevice(@Nullable String deviceAddress, @NonNull String instructions);
void sendStringInstructionsToRemoteDevice(@Nullable String deviceAddress,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,7 @@ public void disconnectDevice(@NonNull String address) {
}

@Override
public void selectServiceUsingUUID(@Nullable String deviceAddress, @NonNull String UUID) {
assert deviceAddress != null;
public void selectServiceUsingUUID(@NonNull String deviceAddress, @NonNull String UUID) {
gattService.selectServiceFromUUID(deviceAddress,UUID);
}

Expand Down

0 comments on commit b3d26ea

Please sign in to comment.