Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
J
Java
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
xAAL
Code
Java
Commits
879612e3
Commit
879612e3
authored
9 months ago
by
KERDREUX Jerome
Browse files
Options
Downloads
Patches
Plain Diff
Update file README.md
parent
5338dcf4
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+37
-0
37 additions, 0 deletions
README.md
with
37 additions
and
0 deletions
README.md
+
37
−
0
View file @
879612e3
# 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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment