public interface DeviceCredentialsApi
Modifier and Type | Method and Description |
---|---|
void |
delete(NewDeviceRequestRepresentation representation)
Remove a device registration.
|
DeviceCredentialsRepresentation |
pollCredentials(String deviceId)
Executes single request to credentials endpoint
|
DeviceCredentialsRepresentation |
pollCredentials(String deviceId,
int interval,
int timeout)
Schedule polling credentials task, invoking it at the specified execution time and subsequently with the given interval
Execution will end after timeout
|
DeviceCredentialsRepresentation |
pollCredentials(String deviceId,
PollingStrategy strategy)
Device poll credentials
|
NewDeviceRequestRepresentation |
register(String id)
Register a new device.
|
NewDeviceRequestRepresentation register(String id)
id
- external id of the device to registervoid delete(NewDeviceRequestRepresentation representation)
representation
- representation of new device request to deleteDeviceCredentialsRepresentation pollCredentials(String deviceId, int interval, int timeout)
deviceId
- device unique identifierinterval
- - how often request is sent in secondstimeout
- - after how many seconds polling process will expireDeviceCredentialsRepresentation pollCredentials(String deviceId, PollingStrategy strategy)
deviceId
- device unique identifierstrategy
- credentials polling strategyDeviceCredentialsRepresentation pollCredentials(String deviceId)
deviceId
- device unique identifierCopyright © 2020 (C) Cumulocity GmbH. All rights reserved.