Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'IllegalArgumentException' error regarding ble, uuid #91

Open
MakeMeCookie opened this issue Nov 17, 2023 · 0 comments
Open

'IllegalArgumentException' error regarding ble, uuid #91

MakeMeCookie opened this issue Nov 17, 2023 · 0 comments

Comments

@MakeMeCookie
Copy link

MakeMeCookie commented Nov 17, 2023

I ran the app as it was. However, if you look at the log, there is a "IllgalArgumentException" error, and uuid's
App terminates with an empty character 'IllegalArgumentException: Invalid UUID String'

If this format is not correct, the java.util.UUUID.fromString() method will cause an IllgalArgumentException.
IllegalArgumentException: InvalidUUUID string: The UUID appears to be an empty string after this. This means that the UUID string is either empty or null.

Therefore, to resolve this issue, make sure that the UUID string is correct. Make sure that the UUID string is empty or not null, and that it conforms to the UUID format.

"if (characteristic == null) {
characteric = service.get characteric ("0000ff52-0000-1000-8000-00805f9b34fb");
}"
It looks like this. Why is there an error?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant