NETIO is a series of smart sockets and PDU (Power Distribution Unit) by Koukaam.
This library gives you a Java-Interface to control them.
To use this library (in the current state), you have to build it yourself. Once the next release is done, you can use it via maven, gradle, ….
The next release includes support for java 9 modules. You require
org.rjung.util.netio
.
This library is in a non stable state at the moment. The library on maven
central can be used and uses a socket connection. The current main branch has
changed to use a http
connection, but it's not done yet.
Unfortunately I don't own a device any more, so I cannot test this is working. I'd love to get a response that this is working, so I can make a new release.
NetworkSwitch networkSwitch = NetworkSwitch.builder("switch.host.name", 2345)
.username("admin").password("secret").build();
networkSwitch.set(1, Switch.ON); // Switch unit 1 on
networkSwitch.set(2, Switch.OFF); // Switch unit 2 off
networkSwitch.set(3, Switch.INTERRUPT); // Send interrupt to unit 3