DashButtonWatcher ![GitHub license](https://camo.githubusercontent.com/5354acf5b8aedebe40a2e38b8be88158741650dc00b74ee9a996f3e270dc6db9/687474703a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)
branch | status | download |
---|---|---|
master | Download latest release (recommend) | |
development | Download snapshots |
JavaDocs: https://shynixn.github.io/DashButtonWatcher/apidocs/
Description
Java Project to listen for dash button clicks in your local network.
Maven
<dependency>
<groupId>com.github.shynixn</groupId>
<artifactId>dashbuttonwatcher-api</artifactId>
<version>1.0</version>
</dependency>
Gradle
dependencies {
compile 'com.github.shynixn:dashbuttonwatcher-api:1.0'
}
How to use the it
String dashButtonIp = "188.0.0.0"; //Your static dashButton ip
DashButtonListener listener = DashButtonListener.fromIpAddress(dashButtonIp);
listener.register(new Runnable() {
@Override
public void run() {
//Gets called when the dashButton with the given ip in the local network is pressed
}
});
Licence
The source code is licensed under the MIT license.