Interface IoShelly25
- All Superinterfaces:
DigitalOutput
,org.osgi.service.event.EventHandler
,OpenemsComponent
- All Known Implementing Classes:
IoShelly25Impl
public interface IoShelly25
extends DigitalOutput, OpenemsComponent, org.osgi.service.event.EventHandler
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
_setRelay1
(Boolean value) Internal method to set the 'nextValue' onIoShelly25.ChannelId.RELAY_1
Channel.default void
_setRelay2
(Boolean value) Internal method to set the 'nextValue' onIoShelly25.ChannelId.RELAY_2
Channel.default void
_setSlaveCommunicationFailed
(boolean value) Internal method to set the 'nextValue' onIoShelly25.ChannelId.SLAVE_COMMUNICATION_FAILED
Channel.Gets the Relay Output 1.default BooleanWriteChannel
Gets the Channel forIoShelly25.ChannelId.RELAY_1
.Gets the Relay Output 2.default BooleanWriteChannel
Gets the Channel forIoShelly25.ChannelId.RELAY_2
.Gets the Slave Communication Failed State.default StateChannel
Gets the Channel forIoShelly25.ChannelId.SLAVE_COMMUNICATION_FAILED
.default void
setRelay1
(boolean value) Sets the Relay Output 1.default void
setRelay2
(boolean value) Sets the Relay Output 2.Methods inherited from interface io.openems.edge.io.api.DigitalOutput
digitalOutputChannels
Methods inherited from interface org.osgi.service.event.EventHandler
handleEvent
Methods inherited from interface io.openems.edge.common.component.OpenemsComponent
_channel, _getChannelAs, alias, channel, channel, channels, debugLog, getComponentContext, getState, getStateChannel, hasFaults, id, isEnabled, serviceFactoryPid, servicePid
-
Method Details
-
getRelay1Channel
Gets the Channel forIoShelly25.ChannelId.RELAY_1
.- Returns:
- the Channel
-
getRelay1
Gets the Relay Output 1. SeeIoShelly25.ChannelId.RELAY_1
.- Returns:
- the Channel
Value
-
_setRelay1
Internal method to set the 'nextValue' onIoShelly25.ChannelId.RELAY_1
Channel.- Parameters:
value
- the next value
-
setRelay1
Sets the Relay Output 1. SeeIoShelly25.ChannelId.RELAY_1
.- Parameters:
value
- the next write value- Throws:
OpenemsError.OpenemsNamedException
- on error
-
getRelay2Channel
Gets the Channel forIoShelly25.ChannelId.RELAY_2
.- Returns:
- the Channel
-
getRelay2
Gets the Relay Output 2. SeeIoShelly25.ChannelId.RELAY_2
.- Returns:
- the Channel
Value
-
_setRelay2
Internal method to set the 'nextValue' onIoShelly25.ChannelId.RELAY_2
Channel.- Parameters:
value
- the next value
-
setRelay2
Sets the Relay Output 2. SeeIoShelly25.ChannelId.RELAY_2
.- Parameters:
value
- the next write value- Throws:
OpenemsError.OpenemsNamedException
- on error
-
getSlaveCommunicationFailedChannel
Gets the Channel forIoShelly25.ChannelId.SLAVE_COMMUNICATION_FAILED
.- Returns:
- the Channel
-
getSlaveCommunicationFailed
Gets the Slave Communication Failed State. SeeIoShelly25.ChannelId.SLAVE_COMMUNICATION_FAILED
.- Returns:
- the Channel
Value
-
_setSlaveCommunicationFailed
default void _setSlaveCommunicationFailed(boolean value) Internal method to set the 'nextValue' onIoShelly25.ChannelId.SLAVE_COMMUNICATION_FAILED
Channel.- Parameters:
value
- the next value
-