nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches

◆ azure_iot_hub_method_respond()

int azure_iot_hub_method_respond ( struct azure_iot_hub_result result)

#include <include/net/azure_iot_hub.h>

Send response to a direct method invoked from the cloud.

Parameters
[in]resultStructure containing result data from the direct method execution.
Return values
0If successful.
-EINVALif a NULL pointer was provided.
-ENOTCONNif there was no IoT hub connection.
-EFAULTif there was an error when creating the response message.
-ENXIOif the MQTT library reported an error when publishing the response.