Skip to content

Commit 7902c31

Browse files
committed
added feedback.lockDurationAsIso8601 setting and Azure Portal and CLI
1 parent 6cda466 commit 7902c31

File tree

2 files changed

+10
-24
lines changed

2 files changed

+10
-24
lines changed

articles/iot-hub/iot-hub-devguide-messages-c2d.md

Lines changed: 10 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -132,48 +132,34 @@ Each IoT hub exposes the following configuration options for cloud-to-device mes
132132
| defaultTtlAsIso8601 | Default TTL for cloud-to-device messages | ISO_8601 interval up to 2 days (minimum 1 minute); default: 1 hour |
133133
| maxDeliveryCount | Maximum delivery count for cloud-to-device per-device queues | 1 to 100; default: 10 |
134134
| feedback.ttlAsIso8601 | Retention for service-bound feedback messages | ISO_8601 interval up to 2 days (minimum 1 minute); default: 1 hour |
135-
| feedback.maxDeliveryCount | Maximum delivery count for the feedback queue | 1 to 100; default: 100 |
136-
| feedback.lockDurationAsIso8601 | Maximum delivery count for the feedback queue | 5 to 300 seconds (minimum 5 seconds); default: 60 seconds. |
135+
| feedback.maxDeliveryCount | Maximum delivery count for the feedback queue | 1 to 100; default: 10 |
136+
| feedback.lockDurationAsIso8601 | Maximum delivery count for the feedback queue | ISO_8601 interval from 5 to 300 seconds (minimum 5 seconds); default: 60 seconds. |
137137

138138
You can set the configuration options in one of the following ways:
139139

140-
* **Azure portal**: Under **Settings** on your IoT hub, select **Built-in endpoints** and expand **Cloud to device messaging**. (Setting the **feedback.maxDeliveryCount** property is not currently supported in Azure portal.)
140+
* **Azure portal**: Under **Settings** on your IoT hub, select **Built-in endpoints** and expand **Cloud to device messaging**. (Setting the **feedback.maxDeliveryCount** and **feedback.lockDurationAsIso8601** properties is not currently supported in Azure portal.)
141141

142-
* **Azure CLI**: Use the [az iot hub update](https://docs.microsoft.com/cli/azure/iot/hub?view=azure-cli-latest#az-iot-hub-update) command:
143-
144-
```azurecli
145-
az iot hub update --name {your IoT hub name} --c2d-ttl PT1H0M0S
146-
147-
az iot hub update --name {your IoT hub name} --c2d-max-delivery-count 10
148-
149-
az iot hub update --name {your IoT hub name} --feedback-ttl PT1H0M0S
150-
151-
az iot hub update --name {your IoT hub name} --feedback-max-delivery-count 100
142+
![Set configuration options for cloud-to-device messaging in the portal](./media/iot-hub-devguide-messages-c2d/c2d-configuration-portal.png)
152143

153-
az iot hub update --name {your IoT hub name} --feedback-lock-duration 60
154-
```
155-
156-
You can also use the generic `set` parameter to set configuration options:
144+
* **Azure CLI**: Use the [az iot hub update](https://docs.microsoft.com/cli/azure/iot/hub?view=azure-cli-latest#az-iot-hub-update) command:
157145

158146
```azurecli
159147
az iot hub update --name {your IoT hub name} \
160-
--set properties.cloudToDevice.defaultTtlAsIso8601 PT1H0M0S
148+
--set properties.cloudToDevice.defaultTtlAsIso8601=PT1H0M0S
161149
162150
az iot hub update --name {your IoT hub name} \
163-
--set properties.cloudToDevice.maxDeliveryCount 10
151+
--set properties.cloudToDevice.maxDeliveryCount=10
164152
165153
az iot hub update --name {your IoT hub name} \
166-
--set properties.cloudToDevice.feedback.ttlAsIso8601 PT1H0M0S
154+
--set properties.cloudToDevice.feedback.ttlAsIso8601=PT1H0M0S
167155
168156
az iot hub update --name {your IoT hub name} \
169-
--set properties.cloudToDevice.feedback.maxDeliveryCount 100
157+
--set properties.cloudToDevice.feedback.maxDeliveryCount=10
170158
171159
az iot hub update --name {your IoT hub name} \
172-
--set properties.cloudToDevice.feedback.lockDurationAsIso8601 60
160+
--set properties.cloudToDevice.feedback.lockDurationAsIso8601=PT0H1M0S
173161
```
174162
175-
176-
177163
## Next steps
178164
179165
For information about the SDKs that you can use to receive cloud-to-device messages, see [Azure IoT SDKs](iot-hub-devguide-sdks.md).
34.6 KB
Loading

0 commit comments

Comments
 (0)