1.1.18.5.7 WDRV_WINC_MQTTPubPropContentTypeSet

C

WDRV_WINC_STATUS WDRV_WINC_MQTTPubPropContentTypeSet
(
    WDRV_WINC_MQTT_PUB_PROP *pPubProp,
    const uint8_t *pContentType
)

Description

Sets the content type property in the publish property structure.

Precondition

WDRV_WINC_MQTTPubPropDefaultSet must have been called.

Parameters

ParametersDescription
pPubPropPointer to publish properties structure.
pContentTypePointer to content type.

Returns

  • WDRV_WINC_STATUS_OK - Request was accepted.

  • WDRV_WINC_STATUS_INVALID_ARG - The parameters were incorrect.

Remarks

If pContentType is NULL the content type property field of the structure is cleared.