Uses of Class
org.bluez.exceptions.BluezFailedException

Packages that use BluezFailedException
  • Uses of BluezFailedException in com.github.hypfvieh.bluetooth

    Modifier and Type
    Method
    Description
    void
    DeviceManager.setScanFilter(Map<DiscoveryFilter,Object> _filter)
    Setup bluetooth scan/discovery filter.
  • Uses of BluezFailedException in com.github.hypfvieh.bluetooth.wrapper

    Modifier and Type
    Method
    Description
    byte[]
    BluetoothGattCharacteristic.readValue(Map<String,Object> _options)
    Read a value from the GATT characteristics register.
    Supported options:
    byte[]
    BluetoothGattDescriptor.readValue(Map<String,Object> _options)
    Read a value from the GATT descriptor register.
    Supported options:
    void
    BluetoothAdapter.removeDevice(Device1 _device)
    Remove a device and it's pairing information.
    void
    BluetoothAdapter.setDiscoveryFilter(Map<String,org.freedesktop.dbus.types.Variant<?>> _filter)
    Use this to set a discovery filter.
    This will cause the bluez library to only add device objects which are matching the given criterias.

    Support values for the Map:
    void
    BluetoothGattCharacteristic.startNotify()
    From bluez Documentation:
    void
    BluetoothGattCharacteristic.stopNotify()
    From bluez Documentation:
    void
    BluetoothGattCharacteristic.writeValue(byte[] _value, Map<String,Object> _options)
    Write value to the GATT characteristic register.
    Supported options:
    void
    BluetoothGattDescriptor.writeValue(byte[] _value, Map<String,Object> _options)
    Write value to the GATT descriptor register.
    Supported options:
  • Uses of BluezFailedException in org.bluez

    Methods in org.bluez that throw BluezFailedException
    Modifier and Type
    Method
    Description
    ThreeTuple<org.freedesktop.dbus.FileDescriptor,org.freedesktop.dbus.types.UInt16,org.freedesktop.dbus.types.UInt16>
    MediaTransport1.Acquire()
    From bluez documentation:

    Acquire transport file descriptor and the MTU for read
    and write respectively.

    TwoTuple<org.freedesktop.dbus.FileDescriptor,org.freedesktop.dbus.types.UInt16>
    GattCharacteristic1.AcquireNotify(Map<String,org.freedesktop.dbus.types.Variant<?>> _options)
    From bluez documentation:

    Acquire file descriptor and MTU for notify.
    TwoTuple<org.freedesktop.dbus.FileDescriptor,org.freedesktop.dbus.types.UInt16>
    GattCharacteristic1.AcquireWrite(Map<String,org.freedesktop.dbus.types.Variant<?>> _options)
    From bluez documentation:

    Acquire file descriptor and MTU for writing.
    void
    MediaItem1.AddtoNowPlaying()
    From bluez documentation:

    Add item to now playing list

    void
    Device1.CancelPairing()
    From bluez documentation:

    This method can be used to cancel a pairing
    operation initiated by the Pair method.

    void
    MediaFolder1.ChangeFolder(org.freedesktop.dbus.DBusPath _folder)
    From bluez documentation:

    Change current folder.

    Note: By changing folder the items of previous folder
    might be destroyed and have to be listed again, the
    exception is NowPlaying folder which should be always
    present while the player is active.

    void
    GattCharacteristic1.Confirm()
    From bluez documentation:

    This method doesn't expect a reply so it is just a
    confirmation that value was received.

    void
    Device1.Connect()
    From bluez documentation:

    This is a generic method to connect any profiles
    the remote device supports that can be connected
    to and have been flagged as auto-connectable on
    our side.
    org.freedesktop.dbus.DBusPath
    Adapter1.ConnectDevice(Map<String,org.freedesktop.dbus.types.Variant<?>> _properties)
    From bluez documentation:

    This method connects to device without need of
    performing General Discovery.
    void
    Device1.ConnectProfile(String _uuid)
    From bluez documentation:

    This method connects a specific profile of this
    device.
    void
    Network1.Disconnect()
    From bluez documentation:

    Disconnect from the network device.

    To abort a connection attempt in case of errors or
    timeouts in the client it is fine to call this method.

    void
    SimAccess1.Disconnect()
    From bluez documentation:

    Disconnects SAP client from the server.

    void
    Device1.DisconnectProfile(String _uuid)
    From bluez documentation:

    This method disconnects a specific profile of
    this device.
    void
    MediaPlayer1.FastForward()
    From bluez documentation:

    Fast forward playback, this action is only stopped
    when another method in this interface is called.

    void
    MediaPlayer1.Hold(byte _avc_key)
    From bluez documentation:

    Press and hold a specific key to send as passthrough
    command.
    TwoTuple<org.freedesktop.dbus.DBusPath,Properties>[]
    MediaFolder1.ListItems(Map<String,org.freedesktop.dbus.types.Variant<?>> _filter)
    From bluez documentation:

    Return a list of items found

    void
    MediaPlayer1.Next()
    From bluez documentation:

    Next item.

    void
    Device1.Pair()
    From bluez documentation:

    This method will connect to the remote device,
    initiate pairing and then retrieve all SDP records
    (or GATT primary services).

    If the application has registered its own agent,
    then that specific agent will be used.
    void
    MediaPlayer1.Pause()
    From bluez documentation:

    Pause playback.

    void
    MediaItem1.Play()
    From bluez documentation:

    Play item

    void
    MediaPlayer1.Play()
    From bluez documentation:

    Resume playback.

    void
    MediaPlayer1.Press(byte _avc_key)
    From bluez documentation:

    Press a specific key to send as passthrough command.
    The key will be released automatically.
    void
    MediaPlayer1.Previous()
    From bluez documentation:

    Previous item.

    byte[]
    GattCharacteristic1.ReadValue(Map<String,org.freedesktop.dbus.types.Variant<?>> _options)
    From bluez documentation:

    Issues a request to read the value of the
    characteristic and returns the value if the
    operation was successful.

    Possible options: "offset": uint16 offset
    "mtu": Exchanged MTU (Server only)
    "device": Object Device (Server only)

    byte[]
    GattDescriptor1.ReadValue(Map<String,org.freedesktop.dbus.types.Variant<?>> _flags)
    From bluez documentation:

    Issues a request to read the value of the
    characteristic and returns the value if the
    operation was successful.

    Possible options: "offset": Start offset
    "device": Device path (Server only)
    "link": Link type (Server only)

    void
    MediaPlayer1.Release()
    From bluez documentation:

    Release the previously held key invoked using Hold().

    void
    Adapter1.RemoveDevice(org.freedesktop.dbus.DBusPath _device)
    From bluez documentation:

    This removes the remote device object at the given
    path.
    void
    MediaPlayer1.Rewind()
    From bluez documentation:

    Rewind playback, this action is only stopped
    when another method in this interface is called.

    org.freedesktop.dbus.DBusPath
    MediaFolder1.Search(String _value, Map<String,org.freedesktop.dbus.types.Variant<?>> _filter)
    From bluez documentation:

    Return a folder object containing the search result.

    To list the items found use the folder object returned
    and pass to ChangeFolder.

    void
    Adapter1.SetDiscoveryFilter(Map<String,org.freedesktop.dbus.types.Variant<?>> _filter)
    From bluez documentation:

    This method sets the device discovery filter for the
    caller.
    void
    Adapter1.StartDiscovery()
    From bluez documentation:

    This method starts the device discovery session.
    void
    GattCharacteristic1.StartNotify()
    From bluez documentation:

    Starts a notification session from this characteristic
    if it supports value notifications or indications.

    void
    MediaPlayer1.Stop()
    From bluez documentation:

    Stop playback.

    void
    Adapter1.StopDiscovery()
    From bluez documentation:

    This method will cancel any previous StartDiscovery
    transaction.

    Note that a discovery procedure is shared between all
    discovery sessions thus calling StopDiscovery will only
    release a single session and discovery will stop when
    all sessions from all clients have finished.

    void
    GattCharacteristic1.StopNotify()
    From bluez documentation:

    This method will cancel any previous StartNotify
    transaction.
    ThreeTuple<org.freedesktop.dbus.FileDescriptor,org.freedesktop.dbus.types.UInt16,org.freedesktop.dbus.types.UInt16>
    MediaTransport1.TryAcquire()
    From bluez documentation:

    Acquire transport file descriptor only if the transport
    is in "pending" state at the time the message is
    received by BlueZ.
    void
    GattCharacteristic1.WriteValue(byte[] _value, Map<String,org.freedesktop.dbus.types.Variant<?>> _options)
    From bluez documentation:

    Issues a request to write the value of the
    characteristic.

    Possible options: "offset": Start offset
    "type": string
    Possible values:
    "command": Write without
    response
    "request": Write with response
    "reliable": Reliable Write
    "mtu": Exchanged MTU (Server only)
    "device": Device path (Server only)
    "link": Link type (Server only)
    "prepare-authorize": True if prepare
    authorization
    request

    void
    GattDescriptor1.WriteValue(byte[] _value, Map<String,org.freedesktop.dbus.types.Variant<?>> _flags)
    From bluez documentation:

    Issues a request to write the value of the
    characteristic.

    Possible options: "offset": Start offset
    "device": Device path (Server only)
    "link": Link type (Server only)
    "prepare-authorize": boolean Is prepare
    authorization
    request

  • Uses of BluezFailedException in org.bluez.obex

    Methods in org.bluez.obex that throw BluezFailedException
    Modifier and Type
    Method
    Description
    void
    Transfer1.Cancel()
    From bluez documentation:

    Stops the current transference.

    void
    FileTransfer.ChangeFolder(String _folder)
    From bluez documentation:

    Change the current folder of the remote device.

    void
    FileTransfer.CopyFile(String _sourcefile, String _targetfile)
    From bluez documentation:

    Copy a file within the remote device from source file
    to target file.

    void
    FileTransfer.CreateFolder(String _folder)
    From bluez documentation:

    Create a new folder in the remote device.

    org.freedesktop.dbus.DBusPath
    Client1.CreateSession(String _destination, Map<String,org.freedesktop.dbus.types.Variant<?>> _args)
    From bluez documentation:

    Create a new OBEX session for the given remote address.

    The last parameter is a dictionary to hold optional or
    type-specific parameters.
    void
    FileTransfer.Delete(String _file)
    From bluez documentation:

    Deletes the specified file/folder.

    TwoTuple<org.freedesktop.dbus.DBusPath,Map<String,org.freedesktop.dbus.types.Variant<?>>>
    ObjectPush1.ExchangeBusinessCards(String _clientfile, String _targetfile)
    From bluez documentation:

    Push the client's business card to the remote device
    and then retrieve the remote business card and store
    it in a local file.

    If an empty target file is given, a name will be
    automatically calculated for the temporary file.

    The returned path represents the newly created transfer,
    which should be used to find out if the content has been
    successfully transferred or if the operation fails.

    The properties of this transfer are also returned along
    with the object path, to avoid a call to GetProperties.

    TwoTuple<org.freedesktop.dbus.DBusPath,Map<String,org.freedesktop.dbus.types.Variant<?>>>
    Message1.Get(String _targetfile, boolean _attachment)
    From bluez documentation:

    Download message and store it in the target file.

    If an empty target file is given, a temporary file
    will be automatically generated.

    The returned path represents the newly created transfer,
    which should be used to find out if the content has been
    successfully transferred or if the operation fails.

    The properties of this transfer are also returned along
    with the object path, to avoid a call to GetProperties.

    Session1.GetCapabilities()
    From bluez documentation:

    Get remote device capabilities.

    TwoTuple<org.freedesktop.dbus.DBusPath,Map<String,org.freedesktop.dbus.types.Variant<?>>>
    FileTransfer.GetFile(String _targetfile, String _sourcefile)
    From bluez documentation:

    Copy the source file (from remote device) to the
    target file (on local filesystem).

    If an empty target file is given, a name will be
    automatically calculated for the temporary file.

    The returned path represents the newly created transfer,
    which should be used to find out if the content has been
    successfully transferred or if the operation fails.

    The properties of this transfer are also returned along
    with the object path, to avoid a call to GetProperties.

    TwoTuple<org.freedesktop.dbus.DBusPath,Map<String,org.freedesktop.dbus.types.Variant<?>>>
    Synchronization1.GetPhonebook(String _targetfile)
    From bluez documentation:

    Retrieve an entire Phonebook Object store from remote
    device, and stores it in a local file.

    If an empty target file is given, a name will be
    automatically calculated for the temporary file.

    The returned path represents the newly created transfer,
    which should be used to find out if the content has been
    successfully transferred or if the operation fails.

    The properties of this transfer are also returned along
    with the object path, to avoid a call to GetProperties.

    org.freedesktop.dbus.types.UInt16
    PhonebookAccess1.GetSize()
    From bluez documentation:

    Return the number of entries in the selected phonebook
    object that are actually used (i.e. indexes that
    correspond to non-NULL entries).

    Map<String,org.freedesktop.dbus.types.Variant<?>>[]
    FileTransfer.ListFolder()
    From bluez documentation:

    Returns a dictionary containing information about
    the current folder content.

    The following keys are defined:

    string Name : Object name in UTF-8 format
    string Type : Either "folder" or "file"
    uint64 Size : Object size or number of items in
    folder
    string Permission : Group, owner and other
    permission
    uint64 Modified : Last change
    uint64 Accessed : Last access
    uint64 Created : Creation date

    Map<String,org.freedesktop.dbus.types.Variant<?>>[]
    MessageAccess1.ListFolders(Map<String,org.freedesktop.dbus.types.Variant<?>> _filter)
    From bluez documentation:

    Returns a dictionary containing information about
    the current folder content.

    The following keys are defined:

    string Name : Folder name

    Possible filters: Offset and MaxCount

    TwoTuple<org.freedesktop.dbus.DBusPath,Map<String,org.freedesktop.dbus.types.Variant<?>>>[]
    MessageAccess1.ListMessages(String _folder, Map<String,org.freedesktop.dbus.types.Variant<?>> _filter)
    From bluez documentation:

    Returns an array containing the messages found in the
    given subfolder of the current folder, or in the
    current folder if folder is empty.

    Possible Filters: Offset, MaxCount, SubjectLength, Fields,
    Type, PeriodStart, PeriodEnd, Status, Recipient, Sender,
    Priority

    Each message is represented by an object path followed
    by a dictionary of the properties.

    Properties:

    string Subject:

    Message subject

    string Timestamp:

    Message timestamp

    string Sender:

    Message sender name

    string SenderAddress:

    Message sender address

    string ReplyTo:

    Message Reply-To address

    string Recipient:

    Message recipient name

    string RecipientAddress:

    Message recipient address

    string Type:

    Message type

    Possible values: "email", "sms-gsm",
    "sms-cdma" and "mms"

    uint64 Size:

    Message size in bytes

    boolean Text:

    Message text flag

    Specifies whether message has textual
    content or is binary only

    string Status:

    Message status

    Possible values for received messages:
    "complete", "fractioned", "notification"

    Possible values for sent messages:
    "delivery-success", "sending-success",
    "delivery-failure", "sending-failure"

    uint64 AttachmentSize:

    Message overall attachment size in bytes

    boolean Priority:

    Message priority flag

    boolean Read:

    Message read flag

    boolean Sent:

    Message sent flag

    boolean Protected:

    Message protected flag

    void
    FileTransfer.MoveFile(String _sourcefile, String _targetfile)
    From bluez documentation:

    Move a file within the remote device from source file
    to the target file.

    TwoTuple<org.freedesktop.dbus.DBusPath,Map<String,org.freedesktop.dbus.types.Variant<?>>>
    PhonebookAccess1.Pull(String _vcard, String _targetfile, Map<String,org.freedesktop.dbus.types.Variant<?>> _filters)
    From bluez documentation:

    Given a vcard handle, retrieve the vcard in the current
    phonebook object and store it in a local file.

    If an empty target file is given, a name will be
    automatically calculated for the temporary file.

    The returned path represents the newly created transfer,
    which should be used to find out if the content has been
    successfully transferred or if the operation fails.

    The properties of this transfer are also returned along
    with the object path, to avoid a call to GetProperties.

    Possbile filters: Format and Fields

    TwoTuple<org.freedesktop.dbus.DBusPath,Map<String,org.freedesktop.dbus.types.Variant<?>>>
    ObjectPush1.PullBusinessCard(String _targetfile)
    From bluez documentation:

    Request the business card from a remote device and
    store it in the local file.

    If an empty target file is given, a name will be
    automatically calculated for the temporary file.

    The returned path represents the newly created transfer,
    which should be used to find out if the content has been
    successfully transferred or if the operation fails.

    The properties of this transfer are also returned along
    with the object path, to avoid a call to GetProperties.

    TwoTuple<org.freedesktop.dbus.DBusPath,Map<String,org.freedesktop.dbus.types.Variant<?>>>
    MessageAccess1.PushMessage(String _sourcefile, String _folder, Map<String,org.freedesktop.dbus.types.Variant<?>> _args)
    From bluez documentation:

    Transfer a message (in bMessage format) to the
    remote device.

    The message is transferred either to the given
    subfolder of the current folder, or to the current
    folder if folder is empty.

    Possible args: Transparent, Retry, Charset

    The returned path represents the newly created transfer,
    which should be used to find out if the content has been
    successfully transferred or if the operation fails.

    The properties of this transfer are also returned along
    with the object path, to avoid a call to GetAll.

    TwoTuple<org.freedesktop.dbus.DBusPath,Map<String,org.freedesktop.dbus.types.Variant<?>>>
    FileTransfer.PutFile(String _sourcefile, String _targetfile)
    From bluez documentation:

    Copy the source file (from local filesystem) to the
    target file (on remote device).

    The returned path represents the newly created transfer,
    which should be used to find out if the content has been
    successfully transferred or if the operation fails.

    The properties of this transfer are also returned along
    with the object path, to avoid a call to GetProperties.

    TwoTuple<org.freedesktop.dbus.DBusPath,Map<String,org.freedesktop.dbus.types.Variant<?>>>
    Synchronization1.PutPhonebook(String _sourcefile)
    From bluez documentation:

    Send an entire Phonebook Object store to remote device.

    The returned path represents the newly created transfer,
    which should be used to find out if the content has been
    successfully transferred or if the operation fails.

    The properties of this transfer are also returned along
    with the object path, to avoid a call to GetProperties.

    PhonebookAccess1.Search(String _field, String _value, Map<String,org.freedesktop.dbus.types.Variant<?>> _filters)
    From bluez documentation:

    Search for entries matching the given condition and
    return an array of vcard-listing data where every entry
    consists of a pair of strings containing the vcard
    handle and the contact name.

    vcard : name paired string match the search condition.

    field : the field in the vcard to search with
    { "name" (default) | "number" | "sound" }
    value : the string value to search for


    Possible filters: Order, Offset and MaxCount

    void
    PhonebookAccess1.Select(String _location, String _phonebook)
    From bluez documentation:

    Select the phonebook object for other operations.
    TwoTuple<org.freedesktop.dbus.DBusPath,Map<String,org.freedesktop.dbus.types.Variant<?>>>
    ObjectPush1.SendFile(String _sourcefile)
    From bluez documentation:

    Send one local file to the remote device.

    The returned path represents the newly created transfer,
    which should be used to find out if the content has been
    successfully transferred or if the operation fails.

    The properties of this transfer are also returned along
    with the object path, to avoid a call to GetProperties.

    void
    MessageAccess1.SetFolder(String _name)
    From bluez documentation:

    Set working directory for current session, *name* may
    be the directory name or '..
    void
    MessageAccess1.UpdateInbox()
    From bluez documentation:

    Request remote to update its inbox.

    void
    PhonebookAccess1.UpdateVersion()
    From bluez documentation:

    Attempt to update PrimaryCounter and SecondaryCounter.