Functions

  appearance_to_type (appearance)
  class_to_type (class_)
  send_to_address (address, alias)
  type_to_filter_string (type)
  type_to_string (type)
  uuid_to_string (uuid)
  verify_address (bdaddr)

Details

GnomeBluetooth.appearance_to_type(appearance)
Parameters:appearance (int) – a Bluetooth device appearance
Returns:a GnomeBluetooth.Type.
Return type:GnomeBluetooth.Type

Returns the type of device corresponding to the given appearance value, as usually found in the GAP service.

GnomeBluetooth.class_to_type(class_)
Parameters:class (int) – a Bluetooth device class
Returns:a GnomeBluetooth.Type.
Return type:GnomeBluetooth.Type

Returns the type of device corresponding to the given class value.

GnomeBluetooth.send_to_address(address, alias)
Parameters:
  • address (str) – Remote device to use
  • alias (str) – Remote device’s name

Start a GUI application for transfering files over Bluetooth.

GnomeBluetooth.type_to_filter_string(type)
Parameters:type (int) – a GnomeBluetooth.Type
Returns:a string.
Return type:str

Returns a human-readable string representation of type usable for display to users, when type filters are displayed. Do not free the return value. The returned string is already translated with gettext().

GnomeBluetooth.type_to_string(type)
Parameters:type (int) – a GnomeBluetooth.Type
Returns:a string.
Return type:str

Returns a human-readable string representation of type usable for display to users. Do not free the return value. The returned string is already translated with gettext().

GnomeBluetooth.uuid_to_string(uuid)
Parameters:uuid (str) – a string representing a Bluetooth UUID
Returns:a string.
Return type:str

Returns a string representing a human-readable (but not usable for display to users) version of the uuid. Do not free the return value.

GnomeBluetooth.verify_address(bdaddr)
Parameters:bdaddr (str) – a string representing a Bluetooth address
Returns:True if the address is valid, False if not.
Return type:bool

Returns whether the string is a valid Bluetooth address. This does not contact the device in any way.