• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CME WIDI Master
#13
I don't think the code is set up to reconnect automatically to a bluetooth device if you turn it off and then back on. That would require re-scanning for all bluetooth devices which would draw power in the background if the device is not immediately found. If I had to try to automatically reconnect, that would mean that I would never stop trying to scan for it in the background, consuming a lot of power over time if the device is not found. I don't think that is the best way to handle this. I'm relying on Google's library to let me know when the device is disconnected, but apparently that is not being reported if you turn the device off (or maybe it takes a while before that is reported through their library).  I think the only way to properly handle this is to pop up a dialog when the bluetooth connection breaks with the MIDI device and ask if the user wants to attempt to reconnect. If they say yes, it will scan and try to look for it. Google's interface does not notify me when the scan is complete, so the user will have to tap cancel if the device isn't found and they don't want to wait any longer for the scan. This also depends on whether the lost connection is reported, so I'll have to investigate this further to understand how long it typically takes or if it isn't really working the way it should. For now, you will just have to manually rescan for the device if you break the connection. I know that's tedious, but there is no easy option for me to reestablish bluetooth connections that doesn't have consequences.

Mike
Reply


Messages In This Thread
CME WIDI Master - by arj14pe - 10-30-2020, 09:54 PM
RE: CME WIDI Master - by Zubersoft - 10-31-2020, 03:12 AM
RE: CME WIDI Master - by arj14pe - 10-31-2020, 08:25 AM
RE: CME WIDI Master - by Zubersoft - 10-31-2020, 04:49 PM
RE: CME WIDI Master - by arj14pe - 11-05-2020, 07:56 PM
RE: CME WIDI Master - by Heronimus - 09-29-2021, 06:34 PM
RE: CME WIDI Master - by Zubersoft - 11-06-2020, 03:24 AM
RE: CME WIDI Master - by arj14pe - 12-08-2020, 01:59 AM
RE: CME WIDI Master - by Zubersoft - 12-08-2020, 06:09 PM
RE: CME WIDI Master - by arj14pe - 12-18-2020, 07:29 AM
RE: CME WIDI Master - by diamant-ct - 03-08-2021, 07:07 PM
RE: CME WIDI Master - by Zubersoft - 03-09-2021, 09:32 AM
RE: CME WIDI Master - by diamant-ct - 03-09-2021, 06:28 PM
RE: CME WIDI Master - by Zubersoft - 03-09-2021, 07:33 PM
RE: CME WIDI Master - by diamant-ct - 03-11-2021, 02:08 AM
RE: CME WIDI Master - by Zubersoft - 03-11-2021, 07:09 PM
RE: CME WIDI Master - by diamant-ct - 03-12-2021, 02:55 AM
RE: CME WIDI Master - by Zubersoft - 03-12-2021, 06:22 AM
RE: CME WIDI Master - by diamant-ct - 03-12-2021, 10:14 PM
RE: CME WIDI Master - by Zubersoft - 03-13-2021, 04:45 AM
RE: CME WIDI Master - by diamant-ct - 03-13-2021, 06:52 PM
RE: CME WIDI Master - by Zubersoft - 03-14-2021, 09:13 AM
RE: CME WIDI Master - by diamant-ct - 03-16-2021, 11:32 PM
RE: CME WIDI Master - by diamant-ct - 03-17-2021, 10:17 PM



Users browsing this thread:
3 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2024 MyBB Group.