iblrig.tools.get_anydesk_id

iblrig.tools.get_anydesk_id(format_id=True, silent=False)[source]

Retrieve the AnyDesk ID of the current machine.

Parameters:
  • format_id (bool, optional) – If True (default), format the ID in blocks separated by spaces. If False, return the ID as one continuous block.

  • silent (bool, optional) – If True, suppresses exceptions and logs them instead. If False (default), raises exceptions.

Returns:

The AnyDesk ID as a formatted string (e.g., ‘123 456 789’) if successful, or None on failure.

Return type:

str or None

Raises:
Parameters:

Notes

The function attempts to find the AnyDesk executable and retrieve the ID using the command line. On success, the AnyDesk ID is returned as a formatted string. If silent is True, exceptions are logged, and None is returned on failure. If silent is False, exceptions are raised on failure.