I
InsightNexus

Azure SDK for Embedded C: sdk/inc/azure/iot/az_iot_common.h File Reference

Author

David Richardson

Published Feb 16, 2026

enum  {
  AZ_HTTP_REQUEST_URL_BUFFER_SIZE = 2 * 1024, AZ_HTTP_REQUEST_BODY_BUFFER_SIZE = 1024, AZ_LOG_MESSAGE_BUFFER_SIZE = 1024 , AZ_IOT_DEFAULT_MQTT_CONNECT_PORT = 8883,
  AZ_IOT_DEFAULT_MQTT_CONNECT_KEEPALIVE_SECONDS = 240, AZ_HUB_CLIENT_DEFAULT_MQTT_TELEMETRY_QOS = 0
} enum  az_iot_status {
  AZ_IOT_STATUS_UNKNOWN = 0, AZ_IOT_STATUS_OK = 200, AZ_IOT_STATUS_ACCEPTED = 202, AZ_IOT_STATUS_NO_CONTENT = 204,
  AZ_IOT_STATUS_BAD_REQUEST = 400, AZ_IOT_STATUS_UNAUTHORIZED = 401, AZ_IOT_STATUS_FORBIDDEN = 403, AZ_IOT_STATUS_NOT_FOUND = 404,
  AZ_IOT_STATUS_NOT_ALLOWED = 405, AZ_IOT_STATUS_NOT_CONFLICT = 409, AZ_IOT_STATUS_PRECONDITION_FAILED = 412, AZ_IOT_STATUS_REQUEST_TOO_LARGE = 413,
  AZ_IOT_STATUS_UNSUPPORTED_TYPE = 415, AZ_IOT_STATUS_THROTTLED = 429, AZ_IOT_STATUS_CLIENT_CLOSED = 499, AZ_IOT_STATUS_SERVER_ERROR = 500,
  AZ_IOT_STATUS_BAD_GATEWAY = 502, AZ_IOT_STATUS_SERVICE_UNAVAILABLE = 503, AZ_IOT_STATUS_TIMEOUT = 504
} Azure IoT service status codes. More...
 AZ_NODISCARD az_result az_iot_message_properties_init (az_iot_message_properties *properties, az_span buffer, int32_t written_length) Initializes the Telemetry or C2D properties. More...
 AZ_NODISCARD az_result az_iot_message_properties_append (az_iot_message_properties *properties, az_span name, az_span value) Appends a name-value property to the list of properties. More...
 AZ_NODISCARD az_result az_iot_message_properties_find (az_iot_message_properties *properties, az_span name, az_span *out_value) Finds the value of a property. More...
 AZ_NODISCARD az_result az_iot_message_properties_next (az_iot_message_properties *properties, az_span *out_name, az_span *out_value) Iterates over the list of properties. More...
 AZ_NODISCARD AZ_INLINE bool az_iot_status_succeeded (az_iot_status status) Checks if the status indicates a successful operation. More...
 AZ_NODISCARD AZ_INLINE bool az_iot_status_retriable (az_iot_status status) Checks if the status indicates a retriable error occurred during the operation. More...
 AZ_NODISCARD int32_t az_iot_calculate_retry_delay (int32_t operation_msec, int16_t attempt, int32_t min_retry_delay_msec, int32_t max_retry_delay_msec, int32_t random_msec) Calculates the recommended delay before retrying an operation that failed. More...
 

Azure IoT common definitions.

Note
You MUST NOT use any symbols (macros, functions, structures, enums, etc.) prefixed with an underscore ('_') directly in your application code. These symbols are part of Azure SDK's internal implementation; we do not document these symbols and they are subject to change in future versions of the SDK which would break your code.