CloudToDeviceMethod Class

The parameters to execute a direct method on the device.

Inheritance
CloudToDeviceMethod

Constructor

CloudToDeviceMethod(*, method_name: Optional[str] = None, payload=None, response_timeout_in_seconds: Optional[int] = None, connect_timeout_in_seconds: Optional[int] = None, **kwargs)

Parameters

method_name
str
Required

The name of the method to execute.

payload
object
Required

The JSON-formatted direct method payload, up to 128kb in size.

response_timeout_in_seconds
int
Required
connect_timeout_in_seconds
int
Required