public sealed class SendCommandToDeviceRequest : IMessage<SendCommandToDeviceRequest>, IEquatable<SendCommandToDeviceRequest>, IDeepCloneable<SendCommandToDeviceRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud IoT v1 API class SendCommandToDeviceRequest.
Request for SendCommandToDevice
.
Implements
IMessageSendCommandToDeviceRequest, IEquatableSendCommandToDeviceRequest, IDeepCloneableSendCommandToDeviceRequest, IBufferMessage, IMessageNamespace
Google.Cloud.Iot.V1Assembly
Google.Cloud.Iot.V1.dll
Constructors
SendCommandToDeviceRequest()
public SendCommandToDeviceRequest()
SendCommandToDeviceRequest(SendCommandToDeviceRequest)
public SendCommandToDeviceRequest(SendCommandToDeviceRequest other)
Parameter | |
---|---|
Name | Description |
other | SendCommandToDeviceRequest |
Properties
BinaryData
public ByteString BinaryData { get; set; }
Required. The command data to send to the device.
Property Value | |
---|---|
Type | Description |
ByteString |
DeviceName
public DeviceName DeviceName { get; set; }
DeviceName-typed view over the Name resource name property.
Property Value | |
---|---|
Type | Description |
DeviceName |
Name
public string Name { get; set; }
Required. The name of the device. For example,
projects/p0/locations/us-central1/registries/registry0/devices/device0
or
projects/p0/locations/us-central1/registries/registry0/devices/{num_id}
.
Property Value | |
---|---|
Type | Description |
string |
Subfolder
public string Subfolder { get; set; }
Optional subfolder for the command. If empty, the command will be delivered to the /devices/{device-id}/commands topic, otherwise it will be delivered to the /devices/{device-id}/commands/{subfolder} topic. Multi-level subfolders are allowed. This field must not have more than 256 characters, and must not contain any MQTT wildcards ("+" or "#") or null characters.
Property Value | |
---|---|
Type | Description |
string |