Command Response, no "View Payload" button

Zach F 1 Reputation point
2021-03-05T20:22:18.323+00:00

I am using the code from the async-hub-scenarios, particularly the "receive_direct_method" file.

It states to do the following:

74981-image.png

This is what happens in the "response"

74982-image.png

If I serialize the payload, the response now shows - however - there is no "view payload" button and the response is overwritten in the command history when I send another command.

Here is code:

74983-image.png

Here is response with no "view payload" button.

74991-image.png

Why is the response originally nothing, then theres no view payload button - but the entire time, every response overwrites the previous response in the command history section. Thank you.

Azure IoT Central
Azure IoT Central
An Azure hosted internet of things (IoT) application platform.
352 questions
Azure IoT Hub
Azure IoT Hub
An Azure service that enables bidirectional communication between internet of things (IoT) devices and applications.
1,128 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Roman Kiss 2,246 Reputation points
    2021-03-06T09:11:49.647+00:00

    @Zach F Try to use the object schema for the command response.

    75014-iotc2.png

    For the second question about the missing responses in the Command history, yes, it looks like this is a bug.

    btw. this is a duplicate question to SO.

    Thanks
    Roman

    1 person found this answer helpful.