Skip to content

Code assumes devices remain online 100% -- does not try to "connect" #4

Description

@PaulCharlton

var deviceMethod = new CloudToDeviceMethod(m_Options.Value.MethodName, TimeSpan.FromSeconds(responseTimeout));

current implementation is using: public CloudToDeviceMethod (string methodName, TimeSpan responseTimeout);

is there some good reason not to use?: public CloudToDeviceMethod (string methodName, TimeSpan responseTimeout, TimeSpan connectionTimeout);

See: https://docs.microsoft.com/en-us/dotnet/api/microsoft.azure.devices.cloudtodevicemethod.-ctor?view=azure-dotnet#Microsoft_Azure_Devices_CloudToDeviceMethod__ctor_System_String_System_TimeSpan_System_TimeSpan_

See also: https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-devguide-direct-methods#method-invocation regarding use of connectTimeoutInSeconds

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions