DigitalTwins.invokeComponentCommandAsync 方法

定义

重载

invokeComponentCommandAsync(String id, String componentPath, String commandName)

Invoke a digital twin command.

invokeComponentCommandAsync(String id, String componentPath, String commandName, final ServiceCallback<Object> serviceCallback)

Invoke a digital twin command.

invokeComponentCommandAsync(String id, String componentPath, String commandName, Object payload, Integer connectTimeoutInSeconds, Integer responseTimeoutInSeconds)

Invoke a digital twin command.

invokeComponentCommandAsync(String id, String componentPath, String commandName, Object payload, Integer connectTimeoutInSeconds, Integer responseTimeoutInSeconds, final ServiceCallback<Object> serviceCallback)

Invoke a digital twin command.

invokeComponentCommandAsync(String id, String componentPath, String commandName)

Invoke a digital twin command.

public Observable<Object> invokeComponentCommandAsync(String id, String componentPath, String commandName)

参数

id
String

the String value

componentPath
String

the String value

commandName
String

the String value

返回

Observable<Object>

the observable to the Object object

例外

IllegalArgumentException

thrown if parameters fail the validation

invokeComponentCommandAsync(String id, String componentPath, String commandName, final ServiceCallback<Object> serviceCallback)

Invoke a digital twin command.

public ServiceFuture<Object> invokeComponentCommandAsync(String id, String componentPath, String commandName, final ServiceCallback<Object> serviceCallback)

参数

id
String

the String value

componentPath
String

the String value

commandName
String

the String value

serviceCallback
final ServiceCallback<Object>

the async ServiceCallback to handle successful and failed responses.

返回

ServiceFuture<Object>

the ServiceFuture object

例外

IllegalArgumentException

thrown if parameters fail the validation

invokeComponentCommandAsync(String id, String componentPath, String commandName, Object payload, Integer connectTimeoutInSeconds, Integer responseTimeoutInSeconds)

Invoke a digital twin command.

public Observable<Object> invokeComponentCommandAsync(String id, String componentPath, String commandName, Object payload, Integer connectTimeoutInSeconds, Integer responseTimeoutInSeconds)

参数

id
String

the String value

componentPath
String

the String value

commandName
String

the String value

payload
Object

the Object value

connectTimeoutInSeconds
Integer

Maximum interval of time, in seconds, that the digital twin command will wait for the answer.

responseTimeoutInSeconds
Integer

Maximum interval of time, in seconds, that the digital twin command will wait for the answer.

返回

Observable<Object>

the observable to the Object object

例外

IllegalArgumentException

thrown if parameters fail the validation

invokeComponentCommandAsync(String id, String componentPath, String commandName, Object payload, Integer connectTimeoutInSeconds, Integer responseTimeoutInSeconds, final ServiceCallback<Object> serviceCallback)

Invoke a digital twin command.

public ServiceFuture<Object> invokeComponentCommandAsync(String id, String componentPath, String commandName, Object payload, Integer connectTimeoutInSeconds, Integer responseTimeoutInSeconds, final ServiceCallback<Object> serviceCallback)

参数

id
String

the String value

componentPath
String

the String value

commandName
String

the String value

payload
Object

the Object value

connectTimeoutInSeconds
Integer

Maximum interval of time, in seconds, that the digital twin command will wait for the answer.

responseTimeoutInSeconds
Integer

Maximum interval of time, in seconds, that the digital twin command will wait for the answer.

serviceCallback
final ServiceCallback<Object>

the async ServiceCallback to handle successful and failed responses.

返回

ServiceFuture<Object>

the ServiceFuture object

例外

IllegalArgumentException

thrown if parameters fail the validation

适用于