There have been issues that a connection to a given Mac address did not go through. Auto discover mode always succeeded. After a successful auto discover session, a 2nd connection was possible with a given mac address.
So this change always uses discover mode and in case of a given mac address it only connects when the discovered device mac address is equal to the given one. Tested on Raspberry Pi Zero W2 with Bluez 5.55.
There have been issues that a connection to a given Mac address did not go through. Auto discover mode always succeeded. After a successful auto discover session, a 2nd connection was possible with a given mac address.
So this change always uses discover mode and in case of a given mac address it only connects when the discovered device mac address is equal to the given one. Tested on Raspberry Pi Zero W2 with Bluez 5.55.