public sealed class SendCommandToDeviceRequest : IMessage<SendCommandToDeviceRequest>, IEquatable<SendCommandToDeviceRequest>, IDeepCloneable<SendCommandToDeviceRequest>, IBufferMessage, IMessage
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
System.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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eVersion 2.2.0 is the latest release, with several previous versions including 2.1.0, 2.0.0, 1.2.0, 1.1.0, and 1.0.0 also available for this library.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eSendCommandToDeviceRequest\u003c/code\u003e is a class used to send commands to a device, inheriting from Object and implementing interfaces like IMessage, IEquatable, IDeepCloneable, and IBufferMessage.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSendCommandToDeviceRequest\u003c/code\u003e class has properties such as BinaryData, DeviceName, Name, and Subfolder, which allow for the specification of the command data, the target device, and optional subfolders.\u003c/p\u003e\n"],["\u003cp\u003eThis request object includes constructors for creating a new \u003ccode\u003eSendCommandToDeviceRequest\u003c/code\u003e instance, or cloning an existing one.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eName\u003c/code\u003e property specifies the device's full resource name, and the \u003ccode\u003eBinaryData\u003c/code\u003e property carries the command data to be delivered to the device.\u003c/p\u003e\n"]]],[],null,[]]