DT won't ansswer when asking for desired properties

Mariano Miguel Franceschetti 1 Reputation point
2022-03-21T19:11:07.65+00:00

Hello.
I'm using mqtt as a protocol to communicate with IoT Hub
When reconnecting the device I follow the flow microsoft describes.
1-Device app connects to an IoT hub.
2-Device app subscribes for desired properties update notifications.
3-Device app retrieves the full document for desired properties.
After the first device's connection, I properly receive the desired properties by requesting them with an empty publish to the topic $iothub/twin/GET/?$rid={request id}.
But on following requests, I get no answer. I foud out that if I delete the device from the Hub and reprovision it, I can again get the first and unique answer to desired parameters request.
Could you please help me?
I'm using an ESP32 with slightly modified versions of pubSubCLient.h and tinyGSM.h
Heres a sample

 #define TINY_GSM_MODEM_SIM7000SSL
 #include 
Azure IoT Hub
Azure IoT Hub
An Azure service that enables bidirectional communication between internet of things (IoT) devices and applications.
1,127 questions
{count} votes