Uses of Class
org.bluez.exceptions.BluezInvalidArgumentsException

  • Uses of BluezInvalidArgumentsException in com.github.hypfvieh.bluetooth

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

    Modifier and Type
    Method
    Description
    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:
  • Uses of BluezInvalidArgumentsException in org.bluez

    Modifier and Type
    Method
    Description
    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.

    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.
    org.freedesktop.dbus.DBusPath
    HealthManager1.CreateApplication(Map<String,org.freedesktop.dbus.types.Variant<?>> _config)
    From bluez documentation:

    Returns the path of the new registered application.
    Application will be closed by the call or implicitly
    when the programs leaves the bus.

    config:
    uint16 DataType:

    Mandatory

    string Role:

    Mandatory.
    org.freedesktop.dbus.DBusPath
    HealthDevice1.CreateChannel(org.freedesktop.dbus.DBusPath _application, String _configuration)
    From bluez documentation:

    Creates a new data channel.
    void
    HealthManager1.DestroyApplication(org.freedesktop.dbus.DBusPath _application)
    From bluez documentation:

    Closes the HDP application identified by the object
    path.
    void
    HealthDevice1.DestroyChannel(org.freedesktop.dbus.DBusPath _channel)
    From bluez documentation:

    Destroys the data channel object.
    void
    ThermometerManager1.DisableIntermediateMeasurement(org.freedesktop.dbus.DBusPath _agent)
    From bluez documentation:

    Disables intermediate measurement notifications
    for this agent.
    void
    Device1.DisconnectProfile(String _uuid)
    From bluez documentation:

    This method disconnects a specific profile of
    this device.
    boolean
    HealthDevice1.Echo()
    From bluez documentation:

    Sends an echo petition to the remote service.
    void
    ThermometerManager1.EnableIntermediateMeasurement(org.freedesktop.dbus.DBusPath _agent)
    From bluez documentation:

    Enables intermediate measurement notifications
    for this agent.
    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
    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.Press(byte _avc_key)
    From bluez documentation:

    Press a specific key to send as passthrough command.
    The key will be released automatically.
    void
    LEAdvertisingManager1.RegisterAdvertisement(org.freedesktop.dbus.DBusPath _advertisement, Map<String,org.freedesktop.dbus.types.Variant<?>> _options)
    From bluez documentation:

    Registers an advertisement object to be sent over the LE
    Advertising channel.
    void
    AgentManager1.RegisterAgent(org.freedesktop.dbus.DBusPath _agent, String _capability)
    From bluez documentation:

    This registers an agent handler.

    The object path defines the path of the agent
    that will be called when user input is needed.

    Every application can register its own agent and
    for all actions triggered by that application its
    agent is used.

    It is not required by an application to register
    an agent.
    void
    GattManager1.RegisterApplication(org.freedesktop.dbus.DBusPath _application, Map<String,org.freedesktop.dbus.types.Variant<?>> _options)
    From bluez documentation:

    Registers a local GATT services hierarchy as described
    above (GATT Server) and/or GATT profiles (GATT Client).

    The application object path together with the D-Bus
    system bus connection ID define the identification of
    the application registering a GATT based
    service or profile.

    void
    Media1.RegisterApplication(org.freedesktop.dbus.DBusPath _root, Map<String,org.freedesktop.dbus.types.Variant<?>> _options)
    From bluez documentation:

    Register endpoints an player objects within root
    object which must implement ObjectManager.

    The application object path together with the D-Bus
    system bus connection ID define the identification of
    the application.

    void
    Media1.RegisterEndpoint(org.freedesktop.dbus.DBusPath _endpoint, Map<String,org.freedesktop.dbus.types.Variant<?>> _properties)
    From bluez documentation:

    Register a local end point to sender, the sender can
    register as many end points as it likes.

    Note: If the sender disconnects the end points are
    automatically unregistered.

    possible properties:

    string UUID:

    UUID of the profile which the endpoint
    is for.

    UUID must be in the list of
    SupportedUUIDS.

    byte Codec:

    Assigned number of codec that the
    endpoint implements.
    void
    Media1.RegisterPlayer(org.freedesktop.dbus.DBusPath _player, Map<String,org.freedesktop.dbus.types.Variant<?>> _properties)
    From bluez documentation:

    Register a media player object to sender, the sender
    can register as many objects as it likes.

    Object must implement at least
    org.mpris.MediaPlayer2.Player as defined in MPRIS 2.2
    spec:

    http://specifications.freedesktop.org/mpris-spec/latest/

    Note: If the sender disconnects its objects are
    automatically unregistered.

    void
    ProfileManager1.RegisterProfile(org.freedesktop.dbus.DBusPath _profile, String _uuid, Map<String,org.freedesktop.dbus.types.Variant<?>> _options)
    From bluez documentation:

    This registers a profile implementation.

    If an application disconnects from the bus all
    its registered profiles will be removed.

    Some predefined services:

    HFP AG UUID: 0000111f-0000-1000-8000-00805f9b34fb

    Default profile Version is 1.7, profile Features
    is 0b001001 and RFCOMM channel is 13.
    Authentication is required.

    HFP HS UUID: 0000111e-0000-1000-8000-00805f9b34fb

    Default profile Version is 1.7, profile Features
    is 0b000000 and RFCOMM channel is 7.
    Authentication is required.

    HSP AG UUID: 00001112-0000-1000-8000-00805f9b34fb

    Default profile Version is 1.2, RFCOMM channel
    is 12 and Authentication is required.
    void
    ThermometerManager1.RegisterWatcher(org.freedesktop.dbus.DBusPath _agent)
    From bluez documentation:

    Registers a watcher to monitor scanned measurements.
    This agent will be notified about final temperature
    measurements.

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

    This removes the remote device object at the given
    path.
    void
    LEAdvertisingManager1.UnregisterAdvertisement(org.freedesktop.dbus.DBusPath _advertisement)
    From bluez documentation:

    This unregisters an advertisement that has been
    previously registered.
    void
    GattManager1.UnregisterApplication(org.freedesktop.dbus.DBusPath _application)
    From bluez documentation:

    This unregisters the services that has been
    previously registered.
    void
    Media1.UnregisterApplication(org.freedesktop.dbus.DBusPath _application)
    From bluez documentation:

    This unregisters the services that has been
    previously registered.
  • Uses of BluezInvalidArgumentsException in org.bluez.obex

    Modifier and Type
    Method
    Description
    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.

    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.

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

    Return an array of vcard-listing data where every entry
    consists of a pair of strings containing the vcard
    handle and the contact name.
    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<?>>>
    PhonebookAccess1.PullAll(String _targetfile, Map<String,org.freedesktop.dbus.types.Variant<?>> _filters)
    From bluez documentation:

    Return the entire phonebook object from the PSE server
    in plain string with vcard format, 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.

    Possible filters: Format, Order, Offset, MaxCount 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.

    void
    Client1.RemoveSession(org.freedesktop.dbus.DBusPath _session)
    From bluez documentation:

    Unregister session and abort pending transfers.

    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
    Synchronization1.SetLocation(String _location)
    From bluez documentation:

    Set the phonebook object store location for other
    operations.