Closed edsonboldrini closed 4 years ago
Do other operations work or is it just discoverChars()
that fails?
Only this operation fails. To work around this, I put a delay from 2 seconds before discoverChars, but I don't think this is the best way to finish my code.
FWIW, You don't need to call this method -- you can read/write chars anyway, using the correct UUID.
Also, please provide a full stacktrace.
FWIW, You don't need to call this method -- you can read/write chars anyway, using the correct UUID.
Sounds nice, so I will remove my discoverChars call.
Also, please provide a full stacktrace.
ASAP I will provide my stacktrace with the error. Thanks for the help!
Too old, already solved
Connection to device has not been initialized yet. You must call "connect()" and wait for "BleConnectionState.connected" before doing any read/write operation. java.lang.IllegalArgumentException: Connection to device has not been initialized yet. You must call "connect()" and wait for "BleConnectionState.connected" before doing any read/write operation.