Skip to content

use ppv model id #45

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

Merged
merged 1 commit into from
Nov 22, 2022
Merged
Changes from all commits
Commits
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
3 changes: 2 additions & 1 deletion examples/Azure_IoT_Adu_ESP32/Azure_IoT_Adu_ESP32.ino
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
#define SAMPLE_MQTT_PAYLOAD_LENGTH 1024

// ADU Values
#define ADU_PPV_DTMI "dtmi:azure:iot:deviceUpdateContractModel;1"
#define ADU_DEVICE_SHA_SIZE 32
#define ADU_SHA_PARTITION_READ_BUFFER_SIZE 32
#define HTTP_DOWNLOAD_CHUNK 4096
Expand Down Expand Up @@ -934,7 +935,7 @@ static void initialize_iot_hub_client()

az_iot_hub_client_options options = az_iot_hub_client_options_default();
options.user_agent = AZ_SPAN_FROM_STR(AZURE_SDK_CLIENT_USER_AGENT);
options.model_id = AZ_SPAN_FROM_STR(AZ_IOT_ADU_CLIENT_AGENT_MODEL_ID);
options.model_id = AZ_SPAN_FROM_STR(ADU_PPV_DTMI);
options.component_names = pnp_components;
options.component_names_length = sizeof(pnp_components) / sizeof(pnp_components[0]);

Expand Down