4.8.0.0R6
Software Development Kit
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules
Azure IoT

Functions

bool ltrx_azure_direct_method_register (const char *method_name, unsigned int(*method)(const char *payload, size_t payloadLength, char *reply, size_t *replyLength))
 Register a direct metod routine. More...
 
bool ltrx_azure_iot_send (const void *data, size_t data_length)
 Send a "devices/<id>/messages/events/" message to Azure. More...
 

Detailed Description

These definitions relate to operation of Azure IoT.

Function Documentation

bool ltrx_azure_direct_method_register ( const char *  method_name,
unsigned int(*)(const char *payload, size_t payloadLength, char *reply, size_t *replyLength)  method 
)

Register a direct metod routine.

Return values
trueSuccess.
Parameters
[in]method_nameThe name for the method being registered.
[in]methodThe routine for the method being registered.
bool ltrx_azure_iot_send ( const void *  data,
size_t  data_length 
)

Send a "devices/<id>/messages/events/" message to Azure.

Return values
trueSuccess.
Parameters
[in]dataThe data to be sent.
[in]data_lengthThe length of the data to be sent.