0

1) I get a direct method request:

$iothub/methods/POST/MyMethodName/?$rid=1

2) For some reasons I do NOT send the response in

$iothub/methods/res/{status}/?$rid={request id}

3) Instead I send at once a twin update.

$iothub/twin/PATCH/properties/reported/?$rid=1 {"ignore": "false"}

But I do not get the response from IoT hub ($iothub/twin/res/204/?$rid=1). I get nothing.

It seems that in this case I cannot establish twin properties until reconnect. I cannot get the twin properties too.

Why absence of response to direct method actually blocks work with twins? P.S. If I send a response to direct method request I can get/set twin properties with the same code.

dmkvl
  • 732
  • 5
  • 13
Diggy
  • 115
  • 8
  • 1
    Could you verify your issue with some MQTT client, for instance: MQTTBox, MQTT.fx, etc.? I can not duplicate your problem issue. – Roman Kiss Jun 04 '19 at 05:54
  • Today I cannot reproduce the issue as well. It's strange because I have no change in that code. – Diggy Jun 04 '19 at 09:32

0 Answers0