1.0.0-preview.4
Pre-release
Pre-release
1.0.0-preview.4 (2020-08-10)
New Features
- Support for writing JSON to non-contiguous buffers.
- Support for reading JSON from non-contiguous buffers.
- Add support for national cloud auth URLs.
Breaking Changes
az_span.h
:az_span_init()
is renamed toaz_span_create()
.az_span_from_str()
is renamed toaz_span_create_from_str()
.- Removed
az_pair_from_str()
.
az_context
:key
andvalue
areconst
.az_context_with_expiration()
is renamed toaz_context_create_with_expiration()
.az_context_with_value()
is renamed toaz_context_create_with_value()
.az_context_app
is renamed toaz_context_application
.
az_credential_client_secret_init()
now takes fourth parameter,authority
.az_http_policy_retry_options
:status_codes
now should be terminated byAZ_HTTP_STATUS_CODE_END_OF_LIST
.max_retries
is nowint32_t
instead ofint16_t
.
az_config.h
:AZ_HTTP_REQUEST_URL_BUF_SIZE
renamed toAZ_HTTP_REQUEST_URL_BUFFER_SIZE
.AZ_HTTP_REQUEST_BODY_BUF_SIZE
renamed toAZ_HTTP_REQUEST_BODY_BUFFER_SIZE
.AZ_LOG_MSG_BUF_SIZE
renamed toAZ_LOG_MESSAGE_BUFFER_SIZE
.
az_result
:AZ_ERROR_HTTP_PLATFORM
renamed toAZ_ERROR_HTTP_ADAPTER
.AZ_ERROR_EOF
renamed toAZ_ERROR_UNEXPECTED_END
.- Removed
AZ_CONTINUE
.
az_storage_blobs_blob_client
:retry
field renamed toretry_options
inaz_storage_blobs_blob_client_options
.- Moved
az_context* context
parameter fromaz_storage_blobs_blob_upload()
into a public field onaz_storage_blobs_blob_upload_options
.
az_json_writer
:az_json_writer_get_json()
is renamed toaz_json_writer_get_bytes_used_in_destination()
.
Bug Fixes
- Remove support for non-finite double values while parsing/formatting.
- Use custom, portable implementation of IEEE 754 compliant
isfinite()
since some embedded platforms don't have it. - Limit use of
sscanf
only to double parsing, using a custom implementation for {u}int{32|64} parsing because of incompatibility withsscanf
format and theGCC newlib-nano
implementation.
Other Changes and Improvements
- Made
az_http_request
and related APIs to get URL, body, and headers, public. - Add and update IoT samples, including DPS.
- Add samples for IoT Hub Plug and Play.