An open API service indexing awesome lists of open source software.

https://github.com/rynr/netio

Java Library to control Netio 230B from Koukaam
https://github.com/rynr/netio

iot java netio powerswitch

Last synced: 5 months ago
JSON representation

Java Library to control Netio 230B from Koukaam

Awesome Lists containing this project

README

          

netio
=====

NETIO is a series of smart sockets and PDU (Power Distribution Unit) by
[Koukaam](http://www.koukaam.se/kkm/index.php).

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
-------

```java
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
----

- [Info](https://rynr.github.io/netio/)
- [Github](https://github.com/rynr/netio)
- [Bugs](https://github.com/rynr/netio/issues)
- [![Join the chat at https://gitter.im/rynr/netio](https://badges.gitter.im/rynr/netio.svg)](https://gitter.im/rynr/netio)
- [![Build Status](https://github.com/rynr/netio/actions/workflows/maven.yml/badge.svg?branch=master)](https://travis-ci.org/rynr/netio)