Cant connect D110
I downloaded the imagemagic windows and the latest windows x64 niimprintX, how do I connect to D110? I have removed from android bluetooth, but windows 11 bluetooth doesnt see anything. And niimprintX selecting d110 and changing label dropdown and click Connect always end up with Cant connect.
Have you enabled "advanced bluetooth devices discovery" in Windows settings?
https://www.elevenforum.com/t/enable-or-disable-advanced-bluetooth-devices-discovery-in-windows-11.14237/
I am using on Linux. The problem may be the D110 has two bluetooth IDs. NiimPrintX connects to whichever D110 randomly comes first
After I made this patch it connected much more reliably:
diff --git a/NiimPrintX/nimmy/bluetooth.py b/NiimPrintX/nimmy/bluetooth.py
index c59e248..11256da 100644
--- a/NiimPrintX/nimmy/bluetooth.py
+++ b/NiimPrintX/nimmy/bluetooth.py
@@ -10,7 +10,7 @@ logger = get_logger()
async def find_device(device_name_prefix=None):
devices = await BleakScanner.discover()
for device in devices:
- if device.name and device.name.lower().startswith(device_name_prefix.lower()):
+ if device.name and device.name.lower().startswith(device_name_prefix.lower()) and len(device.metadata['uuids'])==0:
return device
raise BLEException(f"Failed to find device {device_name_prefix}")