Fix: Use the config json file to store the last connected device and try to automatically reconnect when app opens.