cancel
Showing results for 
Search instead for 
Did you mean: 

Timeout behavior of "IoTHubClient_LL_SendEventAsync" in Azure IoT client.

TMAED.10
Associate

Dear all,

We are prototyping a Azure IoT client using a STM32F7691-Discovery board.

Our engineers are facing a trouble regarding the timeout behavior of " IoTHubClient_LL_SendEventAsync".

We understand that the default timeout is two minutes and "eventConfirmationCallback" whould be called after the timeout period is over.

But in our prototype, nothing are called after the timeout such as 5 minutes.

This is the first Azure development in our team and we think there would be some misunderstandings.

Any suggestions would be appreciated.

Additional information (March 22):

  • "IoTHubClient_LL_SendEventAsync" itself returns without errors.
  • In order to cause "timeout", we modified "net_tcp_lwip.c" so that the return value of net_sock_recv_tcp_lwip() is NET_TIMEOUT(-3).

Additional questions (March 25):

  • We are not sure that the behavior of "iothub_client_XCube_sample_run()" in "STM32CubeExpansion_Cloud_AZURE_V1.1.0" is the same as Azure IoT SDK for Windows or Linux. If there are differences, we would like to know them.
  • We receive "IOTHUB_CLIENT_CONFIRMATION_OK" when the communication is successful. We would like to know the message when timeout occurs.
  • We would like to know the document or something which tells us what we should do first when callback of "IoTHubClient_LL_SendEventAsync" returns failure.

Regards,

Tetsuo Maeda

0 REPLIES 0