parent
c30ccc4944
commit
969f22b4e7
@ -0,0 +1 @@
|
||||
Src changed
|
||||
@ -1,10 +1,20 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?><project-modules id="moduleCoreId" project-version="1.5.0">
|
||||
|
||||
<wb-module deploy-name="webportal">
|
||||
|
||||
<wb-resource deploy-path="/" source-path="/target/m2e-wtp/web-resources"/>
|
||||
|
||||
<wb-resource deploy-path="/" source-path="/src/main/webapp" tag="defaultRootSource"/>
|
||||
|
||||
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/java"/>
|
||||
|
||||
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/resources"/>
|
||||
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/test/java"/>
|
||||
|
||||
<property name="context-root" value="webportal"/>
|
||||
|
||||
<property name="java-output-path" value="/webportal/target/classes"/>
|
||||
|
||||
</wb-module>
|
||||
|
||||
</project-modules>
|
||||
|
||||
@ -0,0 +1,26 @@
|
||||
package de.games.nanoleaf.server;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import io.github.rowak.nanoleafapi.NanoleafDevice;
|
||||
import io.github.rowak.nanoleafapi.util.NanoleafDeviceMeta;
|
||||
import io.github.rowak.nanoleafapi.util.NanoleafSetup;
|
||||
|
||||
public class NanoleafEventServer {
|
||||
|
||||
|
||||
public static void main(String[] args) {
|
||||
int timeout = 2000;
|
||||
// List<NanoleafDeviceMeta> devices = NanoleafSetup.findNanoleafDevices(timeout);
|
||||
// NanoleafDeviceMeta meta = devices.get(0); // Beispiel: Erster Gerät in der Liste
|
||||
// String accessToken = NanoleafSetup.createAccessToken(meta.getHostName(), meta.getPort());
|
||||
// NanoleafDevice device = NanoleafSetup.createDevice(meta, accessToken);
|
||||
//
|
||||
// // Event Handling
|
||||
// device.setOnStateChangedListener(state -> {
|
||||
// System.out.println("State changed: " + state.isOn());
|
||||
// });
|
||||
|
||||
// Weitere Event-Listener hinzufügen, falls erforderlich
|
||||
}
|
||||
}
|
||||
@ -1,4 +0,0 @@
|
||||
<hotdeploy>
|
||||
<webappdir name="/eclnthotdeploy/classes"/>
|
||||
<webappdir name="/eclnthotdeploy/lib"/>
|
||||
</hotdeploy>
|
||||
Loading…
Reference in new issue