corrected version (with typedef struct IOTHUB_CLIENT_LL_UPLOADTOBLOB_HANDLE_DATA* IOTHUB_CLIENT_LL_UPLOADTOBLOB_HANDLE;) included in the sources
Dependents: STM32F746_iothub_client_sample_mqtt
Fork of iothub_client by
Diff: iothub_message.h
- Revision:
- 18:1e9adb15c645
- Parent:
- 16:deba40344375
- Child:
- 36:67300d5a4c1f
diff -r 6622b8a07df3 -r 1e9adb15c645 iothub_message.h --- a/iothub_message.h Fri Oct 23 01:37:22 2015 +0000 +++ b/iothub_message.h Mon Nov 02 19:21:21 2015 -0800 @@ -127,6 +127,46 @@ extern MAP_HANDLE IoTHubMessage_Properties(IOTHUB_MESSAGE_HANDLE iotHubMessageHandle); /** +* @brief Gets the MessageId from the IOTHUB_MESSAGE_HANDLE. +* +* @param iotHubMessageHandle Handle to the message. +* +* @return A const char* pointing to the Message Id. +*/ +extern const char* IoTHubMessage_GetMessageId(IOTHUB_MESSAGE_HANDLE iotHubMessageHandle); + +/** +* @brief Sets the MessageId for the IOTHUB_MESSAGE_HANDLE. +* +* @param iotHubMessageHandle Handle to the message. +* @param messageId Pointer to the memory location of the messageId +* +* @return Returns IOTHUB_MESSAGE_OK if the messageId was set successfully +* or an error code otherwise. +*/ +extern IOTHUB_MESSAGE_RESULT IoTHubMessage_SetMessageId(IOTHUB_MESSAGE_HANDLE iotHubMessageHandle, const char* messageId); + +/** +* @brief Gets the CorrelationId from the IOTHUB_MESSAGE_HANDLE. +* +* @param iotHubMessageHandle Handle to the message. +* +* @return A const char* pointing to the Correlation Id. +*/ +extern const char* IoTHubMessage_GetCorrelationId(IOTHUB_MESSAGE_HANDLE iotHubMessageHandle); + +/** +* @brief Sets the CorrelationId for the IOTHUB_MESSAGE_HANDLE. +* +* @param iotHubMessageHandle Handle to the message. +* @param correlationId Pointer to the memory location of the messageId +* +* @return Returns IOTHUB_MESSAGE_OK if the messageId was set successfully +* or an error code otherwise. +*/ +extern IOTHUB_MESSAGE_RESULT IoTHubMessage_SetCorrelationId(IOTHUB_MESSAGE_HANDLE iotHubMessageHandle, const char* correlationId); + +/** * @brief Frees all resources associated with the given message handle. * * @param iotHubMessageHandle Handle to the message.