Skip to content

Commit 0589ae1

Browse files
use ppv model id (#45)
1 parent 0c2e414 commit 0589ae1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/Azure_IoT_Adu_ESP32/Azure_IoT_Adu_ESP32.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@
6363
#define SAMPLE_MQTT_PAYLOAD_LENGTH 1024
6464

6565
// ADU Values
66+
#define ADU_PPV_DTMI "dtmi:azure:iot:deviceUpdateContractModel;1"
6667
#define ADU_DEVICE_SHA_SIZE 32
6768
#define ADU_SHA_PARTITION_READ_BUFFER_SIZE 32
6869
#define HTTP_DOWNLOAD_CHUNK 4096
@@ -934,7 +935,7 @@ static void initialize_iot_hub_client()
934935

935936
az_iot_hub_client_options options = az_iot_hub_client_options_default();
936937
options.user_agent = AZ_SPAN_FROM_STR(AZURE_SDK_CLIENT_USER_AGENT);
937-
options.model_id = AZ_SPAN_FROM_STR(AZ_IOT_ADU_CLIENT_AGENT_MODEL_ID);
938+
options.model_id = AZ_SPAN_FROM_STR(ADU_PPV_DTMI);
938939
options.component_names = pnp_components;
939940
options.component_names_length = sizeof(pnp_components) / sizeof(pnp_components[0]);
940941

0 commit comments

Comments
 (0)