I am trying to automatically reconnect to a BLE device, a Taidoc Thermometer in this case. I have scanned for the device, then issued a 'pair' command which succeeds and then a 'trust' command which also succeeds.
If I do 'info' on the device it is reported as paired and trusted:
Name: TAIDOC TD1241
Alias: TAIDOC TD1241
Appearance: 0x0300
Paired: yes
Trusted: yes
Blocked: no
Connected: no
LegacyPairing: no
UUID: Vendor specific (00001523-1212-efde-1523-785feabcd123)
UUID: Generic Access Profile (00001800-0000-1000-8000-00805f9b34fb)
UUID: Generic Attribute Profile (00001801-0000-1000-8000-00805f9b34fb)
UUID: Health Thermometer (00001809-0000-1000-8000-00805f9b34fb)
UUID: Device Information (0000180a-0000-1000-8000-00805f9b34fb)
UUID: Battery Service (0000180f-0000-1000-8000-00805f9b34fb)
However, it never automatically reconnects to the device when the device starts advertising. I also tried manually starting a scan but that also doesn't make a difference.
My understanding was that 'trusting' it would make the device reconnect automatically? The Bluez documentation doesn't really say much about what 'trust' does...
Any tips on how to make automatically reconnecting using 'trust' work?