Azure / azure-iot-explorer

Cross-platform UI for interacting with devices attached to Azure IoT Hub. This tool is meant for learning and testing, not for production environment.
MIT License
220 stars 70 forks source link

[BUG] boolean payload state is display as "yes"/"no" for an iot plug and play component #637

Open ryanwinter opened 11 months ago

ryanwinter commented 11 months ago

Describe the bug Boolean state in a DTDL command's request payload is rendered with the option of yes/no instead of true/false. This issue was introduced in version 0.15.8.

To Reproduce Steps to reproduce the behavior:

  1. Install 0.15.8 or later
  2. Examine a device that has a DTDL model with a command that uses a boolean in the request payload, such as dtmi:azurertos:devkit:gsgmxchip;2.
  3. Examine the IoT Plug and Play components command panel.
  4. Observe that it provides state options as "Yes"/"No" instead of "True"/"False".

Expected behavior Boolean values should be true/false, not yes/no.

Screenshots

image

Desktop (please complete the following information):