Package org.bluez
Interface HealthDevice1
- All Superinterfaces:
org.freedesktop.dbus.interfaces.DBusInterface
public interface HealthDevice1
extends org.freedesktop.dbus.interfaces.DBusInterface
File generated - 2023-02-20.
Based on bluez Documentation: health-api.txt.
Service: org.bluez
Interface: org.bluez.HealthDevice1
Object path:
[variable prefix]/{hci0,hci1,...}/dev_XX_XX_XX_XX_XX_XX
Supported properties:
object MainChannel [readonly]
The first reliable channel opened. It is needed by
upper applications in order to send specific protocol
data units. The first reliable can change after a
reconnection.
Based on bluez Documentation: health-api.txt.
Service: org.bluez
Interface: org.bluez.HealthDevice1
Object path:
[variable prefix]/{hci0,hci1,...}/dev_XX_XX_XX_XX_XX_XX
Supported properties:
object MainChannel [readonly]
The first reliable channel opened. It is needed by
upper applications in order to send specific protocol
data units. The first reliable can change after a
reconnection.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classThis signal is launched when a new data channel is
created or when a known data channel is reconnected.static classThis signal is launched when a data channel is deleted.
After this signal the data channel path will not be
valid and its path can be reused for future data
channels. -
Method Summary
Modifier and TypeMethodDescriptionorg.freedesktop.dbus.DBusPathCreateChannel(org.freedesktop.dbus.DBusPath _application, String _configuration) From bluez documentation:
Creates a new data channel.voidDestroyChannel(org.freedesktop.dbus.DBusPath _channel) From bluez documentation:
Destroys the data channel object.booleanEcho()From bluez documentation:
Sends an echo petition to the remote service.Methods inherited from interface org.freedesktop.dbus.interfaces.DBusInterface
getObjectPath, isRemote
-
Method Details
-
Echo
From bluez documentation:
Sends an echo petition to the remote service. Returns
True if response matches with the buffer sent. If some
error is detected False value is returned.
- Returns:
- boolean - maybe null
- Throws:
BluezInvalidArgumentsException- when argument is invalidBluezOutOfRangeException- when value is out of range
-
CreateChannel
org.freedesktop.dbus.DBusPath CreateChannel(org.freedesktop.dbus.DBusPath _application, String _configuration) throws BluezInvalidArgumentsException, BluezHealthErrorException From bluez documentation:
Creates a new data channel. The configuration should
indicate the channel quality of service using one of
this values "reliable", "streaming", "any".
Returns the object path that identifies the data
channel that is already connected.
- Parameters:
_application- application_configuration- configuration- Returns:
- DBusPath - maybe null
- Throws:
BluezInvalidArgumentsException- when argument is invalidBluezHealthErrorException- when operation fails
-
DestroyChannel
void DestroyChannel(org.freedesktop.dbus.DBusPath _channel) throws BluezInvalidArgumentsException, BluezNotFoundException, BluezNotAllowedException From bluez documentation:
Destroys the data channel object. Only the creator of
the channel or the creator of the HealthApplication
that received the data channel will be able to destroy
it.
- Parameters:
_channel- channel- Throws:
BluezInvalidArgumentsException- when argument is invalidBluezNotFoundException- when item not foundBluezNotAllowedException- when operation not allowed
-