esp-azure icon indicating copy to clipboard operation
esp-azure copied to clipboard

Delays / waits in Direct Method / Device Twin Callbacks (CA-269)

Open SputnikTheMighty opened this issue 2 years ago • 0 comments

I've noticed experimentally that within the device twin callback, delays cause crashes. However, within direct method callback, this seems to not be the case. Is it bad practice to have delays within a direct method callback? For example, waiting on a queue to receive some data.

According to Azure, a direct method response can take up to 300s, but I assumed that you can't have the Direct Method handler have a 5 minute delay inside it.

SputnikTheMighty avatar Jan 18 '23 08:01 SputnikTheMighty