Interface DeviceRegistryOperations
- All Known Subinterfaces:
DeviceRegistry,DeviceRegistryClient
- All Known Implementing Classes:
AbstractDeviceRegistry,DeviceRegistryAasClient,DeviceRegistryProxy
public interface DeviceRegistryOperations
A service provider interface for registering devices in the IIP-Ecosphere platform
and interact with them.
All methods listed here are intended to be called by the devices via aas.
- Author:
- Dennis Pidun, University of Hildesheim
-
Method Summary
Modifier and TypeMethodDescriptionRegister a specific device, which can be used for on-boarding.voidSend a heartbeat to device management.voidremoveDevice(String id) Removes a registered device, which can be used for off-boarding.voidsendTelemetry(String id, String telemetryData) Sends telemetry data to device management.
-
Method Details
-
addDevice
Register a specific device, which can be used for on-boarding.- Parameters:
id- the id of the new deviceip- the ip of the new device- Returns:
- information about the results of the registration/on-boarding process
- Throws:
ExecutionException- if the operation fails
-
removeDevice
Removes a registered device, which can be used for off-boarding.- Parameters:
id- the id of the new device- Throws:
ExecutionException- if the operation fails
-
imAlive
Send a heartbeat to device management. Should be called in a 10-30 seconds interval by the device.- Parameters:
id- the id of the new device- Throws:
ExecutionException- if the operation fails
-
sendTelemetry
Sends telemetry data to device management.- Parameters:
id- the id of the devicetelemetryData- the telemetry data (JSON format?)- Throws:
ExecutionException- if the operation fails
-