Azure / azure-iot-hub-node

Azure IoT Hub Data Plane Node SDK
MIT License
1 stars 7 forks source link

inclusion of read-only Device identity properties in Twin #47

Closed kiranpradeep closed 1 month ago

kiranpradeep commented 1 month ago

I like to access readonly Device Identity [0] Properties like connectionState, lastActivityTime from module twin using Twin class [1]. Currently, it appears I have two choices

  1. Call Twin.toJSON() method, and access .connectionState
  2. Accessing directly with twin.connectionState is working for now, but not documented and may fail in future updates.

I like to check if those fields will be made available on Twin class.

kiranpradeep commented 1 month ago

Properties already accessible in Module. Closing.