This repository contains the alpha version of the following AGILE components:
For the compilation, the following packages needs to be installed:
A java
8 compatible JDK and maven (mvn
) must be already available in the system.
JAVA_HOME must be set for compilation to work.
Exposes the org.eclipse.agail.ProtocolManager interface
Example
The package org.eclipse.agail.protocolmanager.example contains an example file (i.e BLEDeviceDiscovery.java) to demonstrate the use of AGILE Protocol Manager to discover BLE devices through DBus interface.
Exposes the org.eclipse.agail.DeviceManager interface
Example
Register BLE Device The package org.eclipse.agail.devicemanager.example contains an example file (i.e RegisterDevice.java) to demonstrate the usage of Agile Device Manager for device registration and creation of DBus interface for the registered device
Additional interfaces
Example
Exposes the org.eclipse.agail.DeviceFactory interface
The DeviceFactory can also load device implementation from a plugin folder. This plugin folder should be part of the classpath and also specified as the first parameter to the DeviceFactory.
Class files with device implementation must implement the org.eclipse.egail.Device interface, and should be placed directly in the org.eclipse.agail.device.instance package. Class files must be placed in the plugin folder structured in a folder hierarchy corresponding to the package, i.e. the usual Java way:
The DBus API can be used from the HTTP endpoint exposed by default on port 8080
.
See the HTTP API reference for details on the exposed endpoints.
To query the endpoint, we suggest using Postman by importing the swagger based API definition
Under the scripts
directory you can find different scripts to setup and start / stop the modules.
./scripts/start.sh
will install (if not available) all the dependencies required to run and start the modules.
To control which component to start:
./scripts/start.sh ProtocolManager
starts only the Protocol Manager module./scripts/start.sh DeviceManager
starts only the Device Manager module./scripts/start.sh http
starts only the HTTP API module./scripts/stop.sh
will kill all the modules.
To control which component to stop (based on pkill -f
pattern):
./scripts/stop.sh protocolmanager
stop only the Protocol Manager module./scripts/stop.sh devicemanager
stop only the Device Manager module./scripts/stop.sh http
stop only the HTTP API module./scripts/install-deps.sh
is used to setup all the java and native dependencies to a local directory (placed in the ./deps
folder)