Package org.bluez

Interface Network1

All Superinterfaces:
org.freedesktop.dbus.interfaces.DBusInterface

public interface Network1 extends org.freedesktop.dbus.interfaces.DBusInterface
File generated - 2023-02-20.
Based on bluez Documentation: network-api.txt.

Service: org.bluez
Interface: org.bluez.Network1

Object path:
[variable prefix]/{hci0,hci1,...}/dev_XX_XX_XX_XX_XX_XX

Supported properties:

boolean Connected [readonly]

Indicates if the device is connected.

string Interface [readonly]

Indicates the network interface name when available.

string UUID [readonly]

Indicates the connection role when available.



  • Method Summary

    Modifier and Type
    Method
    Description
    Connect(String _uuid)
    From bluez documentation:

    Connect to the network device and return the network
    interface name.
    void
    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.

    Methods inherited from interface org.freedesktop.dbus.interfaces.DBusInterface

    getObjectPath, isRemote
  • Method Details

    • Connect

      From bluez documentation:

      Connect to the network device and return the network
      interface name. Examples of the interface name are
      bnep0, bnep1 etc.

      uuid can be either one of "gn", "panu" or "nap" (case
      insensitive) or a traditional string representation of
      UUID or a hexadecimal number.

      The connection will be closed and network device
      released either upon calling Disconnect() or when
      the client disappears from the message bus.

      Parameters:
      _uuid - uuid
      Returns:
      String - maybe null
      Throws:
      BluezAlreadyConnectedException - when already connected
      BluezConnectionAttemptFailedException - when connection attempt failed
    • Disconnect

      void Disconnect() throws BluezFailedException
      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.

      Throws:
      BluezFailedException - on failure