Closed MNS26 closed 1 year ago
Hi Do you know what is the reason the device gets disconnected? That can give a hint at what is happening. My guess is the device is not really disconnected, because otherwise there would be no messages arriving at the queue.
i pressed the reset button because i had to change the code its running (RP2040), it has builtin usb
as shown in the picture the 1st reset made it show up (only sometimes needed) but after the 2nd reset it floods the queue
@dwilches any thoughts on what to do?
Hi After a reset you won't be able to reuse the same connection, but you may be able to detect from Unity that the connection is broken and then close it and re-connect. But I would only do this is pressing the reset button is a normal use-case of the application you are building, not if it's something that only happens during development.
when disconnecting out of nowhere it will flood the queue and nothing can be done about it other than restarting
is it possible to fall back to checking for the serial device?