public interface Provisioning
Modifier and Type | Method and Description |
---|---|
CompletionStage<String> |
register(String deviceId,
Credentials credentials,
Optional<String> directoryPath,
Optional<List<Attribute<?>>> attributes,
String... acknowledgements)
Registers device that will be connected and managed through the IoT Manager
|
CompletionStage<Void> |
unregister(String deviceId,
UnregisterOptions options,
String... acknowledgements)
Unregistered device
|
CompletionStage<String> register(String deviceId, Credentials credentials, Optional<String> directoryPath, Optional<List<Attribute<?>>> attributes, String... acknowledgements)
deviceId
- id device identifiercredentials
- credentials used for device authenticationdirectoryPath
- directory group the device to be added toattributes
- Device attributes to be addedacknowledgements
- requested acknowledgements for this operationCompletionStage
containing provisioning JSON object as a result or an error if the operation is not successfully finishedCompletionStage<Void> unregister(String deviceId, UnregisterOptions options, String... acknowledgements)
deviceId
- device identifieroptions
- unregister optionsacknowledgements
- requested acknowledgements for this operationCompletionStage
object to track the unregister processCopyright © 2022 Bosch.IO GmbH. All rights reserved.