Skip to content
Snippets Groups Projects
Commit 879612e3 authored by KERDREUX Jerome's avatar KERDREUX Jerome
Browse files

Update file README.md

parent 5338dcf4
Branches
No related tags found
No related merge requests found
# xAAL Lib for Java
This repo contains the Java implementation of the xAAL protocol.
It provides a set of classes to create xAAL devices and gateways,
and a sample usage of these classes.
## Usage
```java
package imt.xaal.tests;
import java.util.Arrays;
import java.util.UUID;
import imt.xaal.lib.Engine;
public class TestLamp {
/**
* @param args the command line arguments
*/
public static void main(String[] args) throws Exception{
LogFormatter.install();
Engine eng = new Engine();
Lamp l1 = new Lamp(UUID.fromString("6265eb30-8c59-11e9-98b1-b827ebe99201"));
Lamp l2 = new Lamp(UUID.fromString("6265eb30-8c59-11e9-98b1-b827ebe99202"));
UUID grp = UUID.randomUUID();
l1.setGroupID(grp);
l2.setGroupID(grp);
eng.registerDevices(Arrays.asList(l1,l2));
eng.init();
eng.start();
l1.toggle();
l2.setBrightness(50);
}
}
```
License: LGPL v3
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment