Class BluetoothApis.BLUETOOTH_ADDRESS

java.lang.Object
com.sun.jna.Structure
com.sun.jna.Union
com.sun.jna.platform.win32.BluetoothApis.BLUETOOTH_ADDRESS
Enclosing interface:
BluetoothApis

public static class BluetoothApis.BLUETOOTH_ADDRESS extends Union
The BLUETOOTH_ADDRESS structure provides the address of a Bluetooth device. The address is stored as either a BTH_ADDR (unsigned 64-bit integer) or a 6-byte array.
See Also:
  • Field Details

    • ullLong

      public long ullLong
      The Bluetooth address as a 64-bit unsigned integer (only lower 48 bits used).
    • rgBytes

      public byte[] rgBytes
      The Bluetooth address as a 6-byte array in network byte order.
  • Constructor Details

    • BLUETOOTH_ADDRESS

      public BLUETOOTH_ADDRESS()
  • Method Details

    • getAddress

      public long getAddress()
      Gets the address as a long.
      Returns:
      the address
    • getBytes

      public byte[] getBytes()
      Gets the address as a 6-byte array.
      Returns:
      the address bytes