Skip to content

Commit 2e910d4

Browse files
committed
Edits
1 parent 899154e commit 2e910d4

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

articles/iot-hub/how-to-schedule-broadcast-jobs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ zone_pivot_groups: iot-hub-howto-c2d-1
1616

1717
This article shows you how to create back-end app code to schedule and broadcast jobs.
1818

19-
Use Azure IoT Hub to schedule and track jobs that update up to millions of devices for the following operations:
19+
Use Azure IoT Hub to schedule and track jobs that update up to millions of devices for these operations:
2020

2121
* Invoke direct methods
2222
* Updated device twins

includes/iot-hub-howto-schedule-broadcast-jobs-dotnet.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,16 @@ Use [ScheduleDeviceMethodAsync](/dotnet/api/microsoft.azure.devices.jobclient.sc
6666

6767
Use the [CloudToDeviceMethod](/dotnet/api/microsoft.azure.devices.cloudtodevicemethod.-ctor?#microsoft-azure-devices-cloudtodevicemethod-ctor(system-string-system-timespan-system-timespan)) object to specify the direct method name and device connection time-out values.
6868

69+
For example:
70+
6971
```csharp
7072
// The CloudToDeviceMethod record specifies the direct method name and device connection time-out
7173
CloudToDeviceMethod directMethod =
7274
new CloudToDeviceMethod("LockDoor", TimeSpan.FromSeconds(5),
7375
TimeSpan.FromSeconds(5));
7476
```
7577

76-
This example schedules a job for a direct method named "LockDoor" on one device named "Device-1". One or more devices included in the scheduled job are contained second parameter as a query condition. For more information about query conditions, see [IoT Hub query language for device and module twins, jobs, and message routing](/azure/iot-hub/iot-hub-devguide-query-language).
78+
This example schedules a job for a direct method named "LockDoor" on one device named "Device-1". The devices included in the scheduled job are contained second parameter as a query condition. For more information about query conditions, see [IoT Hub query language for device and module twins, jobs, and message routing](/azure/iot-hub/iot-hub-devguide-query-language).
7779

7880
```csharp
7981
string methodJobId = Guid.NewGuid().ToString(); // a unique job ID
@@ -87,9 +89,9 @@ JobResponse result = await jobClient.ScheduleDeviceMethodAsync(methodJobId,
8789

8890
### Schedule a device twin update job
8991

90-
Use [ScheduleTwinUpdateAsync](/dotnet/api/microsoft.azure.devices.jobclient.scheduledevicemethodasync) to schedule a new device twin desired properties and tags update job to run on one or more devices.
92+
Use [ScheduleTwinUpdateAsync](/dotnet/api/microsoft.azure.devices.jobclient.scheduletwinupdateasync) to schedule a new device twin desired properties and tags update job to run on one or more devices.
9193

92-
First, create and populate a device `Twin` object for the update. For example:
94+
First, create and populate a device [Twin](/dotnet/api/microsoft.azure.devices.shared.twin) object for the update. For example:
9395

9496
```csharp
9597
static string deviceId = "Device-1";

includes/iot-hub-howto-schedule-broadcast-jobs-java.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,6 @@ try {
102102

103103
Use [scheduleUpdateTwin](/java/api/com.microsoft.azure.sdk.iot.service.jobs.jobclient?#com-microsoft-azure-sdk-iot-service-jobs-jobclient-scheduleupdatetwin(java-lang-string-java-lang-string-com-microsoft-azure-sdk-iot-service-devicetwin-devicetwindevice-java-util-date-long)) to schedule a job to run a device twin update on one or multiple devices.
104104

105-
This example method schedules a device twin update job for a specific job ID.
106-
107105
First, prepare a [DeviceTwinDevice](/java/api/com.microsoft.azure.sdk.iot.service.devicetwin.devicetwindevice) record for the device twin update. For example:
108106

109107
```java

0 commit comments

Comments
 (0)