Monitor Exception - Reconnect
Magic73 opened this issue · 0 comments
Magic73 commented
Hi, I'm using the latest version of the library, with a Samsung Galaxy S8+, ADB 1.0.40
You have to add a new state value in the RegExp expression, inside DeviceData.
"connecting"
when I connect my s8 to PC, I got two messages (connecting and device), and your MonitorLibrary throw an exception sinche it fails to match the regexp for the first message.
Probably the new ADB changes how it handles the connections.
I downloaded the source code, added the "connecting" string to the regexp, and now it works.
But now, on connection, there are two events fired:
- connecting message, fire the OnDeviceConnected
- device message: fire the OnDeviceChanged
I just pulled a request for this fix :)