Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Azure Device Update code to main #2375

Merged
merged 38 commits into from
Nov 11, 2022
Merged
Show file tree
Hide file tree
Changes from 25 commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
1c03c75
add adu code (#2288)
danewalton Aug 1, 2022
a285a69
Add null manifest scenario (#2297)
danewalton Aug 4, 2022
d2fe8f2
add adu code (#2288) (#2330)
danewalton Sep 7, 2022
ebc340e
Add ADU root keys (#2332)
danewalton Sep 9, 2022
8539495
Change ADU client update id to match service specification (#2331)
ewertons Sep 10, 2022
006bf8e
Port vcpkg updates to adu feature branch (#2336)
danewalton Sep 14, 2022
38850b9
add support for null file url value (#2334)
danewalton Sep 14, 2022
3233d8a
update docs for adu action (#2335)
danewalton Sep 14, 2022
aabc319
Move dtmi to public header (#2342)
danewalton Sep 19, 2022
7319eda
ADU request keeps span slice instead of copying string (#2340)
danewalton Sep 23, 2022
b267362
update device DTMI to correct value (#2348)
danewalton Sep 23, 2022
e78ee79
merge base64url (#2341)
danewalton Sep 26, 2022
6fc2633
[ADU] Update request manifest parsing to ignore Delta Updates (#2349)
vaavva Sep 28, 2022
17073a8
fix todos (#2353)
danewalton Sep 29, 2022
22d0ce9
distinguish between model id and interface id (#2354)
danewalton Sep 30, 2022
2420598
add parsing of retry timestamp (#2358)
danewalton Oct 10, 2022
71d4716
Merge branch 'main' into dane/mergemain
danewalton Oct 27, 2022
e699adb
Merge branch 'main' into feature/iot-adu
danewalton Nov 1, 2022
323f67a
Update to GA version string (#2381)
danewalton Nov 1, 2022
d22430b
remove ADU linux sample (#2386)
danewalton Nov 2, 2022
777b76c
feature branch PR feedback (#2385)
danewalton Nov 3, 2022
87d789c
remove adu root keys (#2388)
danewalton Nov 3, 2022
1fc36bf
Add tests for array doesn't have enough size for files (#2389)
danewalton Nov 3, 2022
5c9f969
Typedef the enums (#2391)
danewalton Nov 3, 2022
ad98ddf
add initializer for device props (#2392)
danewalton Nov 4, 2022
a257c8c
remove config | move to internal (#2395)
danewalton Nov 4, 2022
d86ea60
Change adu file size to be int64_t in case of larger updates (#2393)
vaavva Nov 7, 2022
467744a
Change enums to present tense (#2397)
danewalton Nov 7, 2022
a3602d5
Update samples readme with link to Azure Device Update sample (#2399)
ewertons Nov 7, 2022
78832ed
update header file docs (#2398)
danewalton Nov 8, 2022
65b6158
update internal configs to be lowercase (#2402)
danewalton Nov 8, 2022
68f231a
update to GA dtmi (#2410)
danewalton Nov 9, 2022
f43401e
pr feedback (#2414)
danewalton Nov 10, 2022
bace5a0
Merge branch 'main' into dane/newunescape
danewalton Nov 10, 2022
0418d59
fix adu test
danewalton Nov 10, 2022
6d3efa0
Merge branch 'feature/iot-adu' into dane/newunescape
danewalton Nov 10, 2022
be56014
update docs for no delta updates (#2421)
danewalton Nov 11, 2022
8d484ea
add "embedded" to docs (#2422)
danewalton Nov 11, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ if (UNIT_TESTING)
add_subdirectory(sdk/tests/core)

# IoT
add_subdirectory(sdk/tests/iot/adu)
add_subdirectory(sdk/tests/iot/common)
add_subdirectory(sdk/tests/iot/hub)
add_subdirectory(sdk/tests/iot/provisioning)
Expand Down
1 change: 1 addition & 0 deletions sdk/inc/azure/az_iot.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#ifndef _az_IOT_H
#define _az_IOT_H

#include <azure/iot/az_iot_adu_client.h>
#include <azure/iot/az_iot_common.h>
#include <azure/iot/az_iot_hub_client.h>
#include <azure/iot/az_iot_hub_client_properties.h>
Expand Down
13 changes: 10 additions & 3 deletions sdk/inc/azure/core/az_span.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,17 +76,24 @@ AZ_NODISCARD az_span az_span_create(uint8_t* ptr, int32_t size);
#endif // AZ_NO_PRECONDITION_CHECKING

/**
* @brief An empty #az_span.
* @brief An empty #az_span literal.
danewalton marked this conversation as resolved.
Show resolved Hide resolved
*
* @remark There is no guarantee that the pointer backing this span will be `NULL` and the caller
* shouldn't rely on it. However, the size will be 0.
*/
#define AZ_SPAN_EMPTY \
(az_span) \
#define AZ_SPAN_LITERAL_EMPTY \
danewalton marked this conversation as resolved.
Show resolved Hide resolved
{ \
._internal = {.ptr = NULL, .size = 0 } \
}

/**
* @brief An empty #az_span.
*
* @remark There is no guarantee that the pointer backing this span will be `NULL` and the caller
* shouldn't rely on it. However, the size will be 0.
*/
#define AZ_SPAN_EMPTY (az_span) AZ_SPAN_LITERAL_EMPTY

// Returns the size (in bytes) of a literal string.
// Note: Concatenating "" to S produces a compiler error if S is not a literal string
// The stored string's length does not include the \0 terminator.
Expand Down
Loading