Skip to content
This repository has been archived by the owner on Apr 24, 2024. It is now read-only.

rynr/netio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

netio

NETIO is a series of smart sockets and PDU (Power Distribution Unit) by Koukaam.

This library gives you a Java-Interface to control them.

Include

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.

Current State

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.

Example

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

Info

About

Java Library to control Netio 230B from Koukaam

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages