IoTHubMessage_SetAsSecurityMessage()

Marks a IoTHub message as a security message. CAUTION: Security messages are special messages not easily accessable by the user.

Syntax

#include "azure-iot-sdk-c/iothub_client/inc/iothub_message.h"

IOTHUB_MESSAGE_RESULT IoTHubMessage_SetAsSecurityMessage(IOTHUB_MESSAGE_HANDLE  iotHubMessageHandle);

Parameters

  • iotHubMessageHandle Handle to the message.

Return Value

Returns IOTHUB_MESSAGE_OK if the Security Message was set successfully or an error code otherwise.