![]() |
nRF Connect SDK API 3.3.99
|
| 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.
| [in] | result | Structure containing result data from the direct method execution. |
| 0 | If successful. |
| -EINVAL | if a NULL pointer was provided. |
| -ENOTCONN | if there was no IoT hub connection. |
| -EFAULT | if there was an error when creating the response message. |
| -ENXIO | if the MQTT library reported an error when publishing the response. |