This repository contains the alpha version of the following AGILE components:
For the compilation, the following packages needs to be installed:
- gettext git cmake
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 iot.agile.ProtocolManager interface
- DBus interface name iot.agile.ProtocolManager
- DBus interface path /iot/agile/ProtocolManager
Example
The package iot.agile.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 iot.agile.DeviceManager interface
- DBus interface name iot.agile.DeviceManger
- DBus interface path /iot/agile/DeviceManager
Example
Register BLE Device The package iot.agile.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
- iot.agile.Device
-
DBus interface base name iot.agile.device.[device name]
-
DBus interface base path /iot/agile/Device/[device name]
Example
- Connect BLE Device(TI SensorTag): The ConnectDevice.java file in iot.agile.devicemanager.example package demonstrates the usage of Agile iot.agile.Device Dbus interface to connect a TI SensorTag device.
- Read Data: The ReadData.java file in iot.agile.devicemanager.example package demonstrates the usage of iot.agile.Device DBus interface in order to read temperature data from TI SensorTag temperature sensor/service.
-
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.shwill install (if not available) all the dependencies required to run and start the modules.To control which component to start:
./scripts/start.sh ProtocolManagerstarts only the Protocol Manager module./scripts/start.sh DeviceManagerstarts only the Device Manager module./scripts/start.sh httpstarts only the HTTP API module
-
./scripts/stop.shwill kill all the modules.To control which component to stop (based on
pkill -fpattern):./scripts/stop.sh protocolmanagerstop only the Protocol Manager module./scripts/stop.sh devicemanagerstop only the Device Manager module./scripts/stop.sh httpstop only the HTTP API module
-
./scripts/install-deps.shis used to setup all the java and native dependencies to a local directory (placed in the./depsfolder)