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