15 #ifndef _az_IOT_CORE_H
16 #define _az_IOT_CORE_H
24 #include <azure/core/_az_cfg_prefix.h>
28 AZ_IOT_DEFAULT_MQTT_CONNECT_PORT = 8883,
29 AZ_IOT_DEFAULT_MQTT_CONNECT_KEEPALIVE_SECONDS = 240
41 AZ_IOT_STATUS_UNKNOWN = 0,
44 AZ_IOT_STATUS_OK = 200,
45 AZ_IOT_STATUS_ACCEPTED = 202,
46 AZ_IOT_STATUS_NO_CONTENT = 204,
49 AZ_IOT_STATUS_BAD_REQUEST = 400,
50 AZ_IOT_STATUS_UNAUTHORIZED = 401,
51 AZ_IOT_STATUS_FORBIDDEN = 403,
52 AZ_IOT_STATUS_NOT_FOUND = 404,
53 AZ_IOT_STATUS_NOT_ALLOWED = 405,
54 AZ_IOT_STATUS_NOT_CONFLICT = 409,
55 AZ_IOT_STATUS_PRECONDITION_FAILED = 412,
56 AZ_IOT_STATUS_REQUEST_TOO_LARGE = 413,
57 AZ_IOT_STATUS_UNSUPPORTED_TYPE = 415,
58 AZ_IOT_STATUS_THROTTLED = 429,
59 AZ_IOT_STATUS_CLIENT_CLOSED = 499,
60 AZ_IOT_STATUS_SERVER_ERROR = 500,
61 AZ_IOT_STATUS_BAD_GATEWAY = 502,
62 AZ_IOT_STATUS_SERVICE_UNAVAILABLE = 503,
63 AZ_IOT_STATUS_TIMEOUT = 504,
81 #define AZ_IOT_MESSAGE_PROPERTIES_MESSAGE_ID \
83 #define AZ_IOT_MESSAGE_PROPERTIES_CORRELATION_ID \
86 #define AZ_IOT_MESSAGE_PROPERTIES_CONTENT_TYPE \
88 #define AZ_IOT_MESSAGE_PROPERTIES_CONTENT_ENCODING "%24.ce"
89 #define AZ_IOT_MESSAGE_PROPERTIES_USER_ID "%24.uid"
90 #define AZ_IOT_MESSAGE_PROPERTIES_CREATION_TIME "%24.ctime"
101 int32_t properties_written;
102 uint32_t current_property_index;
129 int32_t written_length);
195 return status < AZ_IOT_STATUS_BAD_REQUEST;
207 return ((status == AZ_IOT_STATUS_THROTTLED) || (status == AZ_IOT_STATUS_SERVER_ERROR));
222 int32_t operation_msec,
224 int32_t min_retry_delay_msec,
225 int32_t max_retry_delay_msec,
226 int32_t random_msec);
228 #include <azure/core/_az_cfg_suffix.h>