Skip to content

when azure iot device is disabled sometimes report properties twin to cloud will success  #1193

@AiHaibara

Description

@AiHaibara

Context

  • OS and version used: <Windows 11>
  • Node.js version: <18.10.0>
  • pnpm version: <8.4.0>
  • list of installed packages: < "azure-iot-device": "^1.18.2","azure-iot-device-amqp": "^1.14.2",>

Description of the issue

when i using api to disable a azure iot device, the azure portal show Enable connection to IoT Hub is disable, it can still report properties twin to cloud using amqpws
and I want to retry reconnect every 30s, if the device is enabled.
but before I enabled it, it will always trigger both the connected and disconnected event and sometimes report properties twin to cloud will success even after 5 minutes or restart program.
does the reported success is designed or issue?
if that how can i distinguish is disabled or not?

Usage

Enable connection to IoT Hub is disable
this.client?._transport.updateTwinReportedProperties every 30s

Result

the twin is success reported

Metadata

Metadata

Assignees

No one assigned

    Labels

    IoTSDKtracks all IoT SDK issues across the boardbug

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions