Relay
Description
The Relay object allows controlling the internal relay of the HUB-GM100 device.
- › Inherits:
Overview
Properties
Methods
Signals
Properties
value
This property holds the current state of the relay.
- › Type:
Boolean
- › Default:
false- › Attributes:
Writable
Example
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
}
}