Azure / azure-iot-sdk-node

A Node.js SDK for connecting devices to Microsoft Azure IoT services
https://docs.microsoft.com/en-us/azure/iot-hub/
Other
261 stars 227 forks source link

Expected expiry time value on C2D message #825

Closed paolerm closed 4 years ago

paolerm commented 4 years ago

I'm trying to set this value with a custom value (1 day)

https://github.com/Azure/azure-iot-sdk-node/blob/9713b2f4d001c5ac868320b25850cad0481bdf85/common/core/src/message.ts#L32

I've tried to follow this C2D documentation and I set a valid duration ISO string (P1D) but it looks like client.send function does not return. I've tried also with a Date object and a ISO string date with no success.

What's the expected value for expiryTimeUtc field?

AB#7542162

paolerm commented 4 years ago

Found response here: https://github.com/Azure/azure-iot-sdk-node/issues/151

az-iot-builder-01 commented 4 years ago

@paolerm, thank you for your contribution to our open-sourced project! Please help us improve by filling out this 2-minute customer satisfaction survey