.. _object_Relay: :index:`Relay` -------------- Description *********** The Relay object allows controlling the internal relay of the HUB-GM100 device. :**› Inherits**: :ref:`Object ` Overview ******** Properties ++++++++++ .. hlist:: :columns: 1 * :ref:`value ` * :ref:`Object.objectId ` * :ref:`Object.parent ` Methods +++++++ .. hlist:: :columns: 1 * :ref:`Object.deserializeProperties() ` * :ref:`Object.fromJson() ` * :ref:`Object.serializeProperties() ` * :ref:`Object.toJson() ` Signals +++++++ .. hlist:: :columns: 1 * :ref:`Object.completed() ` Properties ********** .. _property_Relay_value: .. index:: single: value value +++++ This property holds the current state of the relay. :**› Type**: Boolean :**› Default**: ``false`` :**› Attributes**: Writable .. _example_Relay: Example ******* .. code-block:: qml import InCore.Foundation 2.5 import InCore.IO 2.5 Application { Relay { id: relay } // toggle relay every 1000 ms Timer { interval: 1000 running: true onTriggered: relay.value = !relay.value } }