diff --git a/sdk/inc/azure/iot/az_iot_adu_client.h b/sdk/inc/azure/iot/az_iot_adu_client.h index 9a8a815495..8b03718ba2 100644 --- a/sdk/inc/azure/iot/az_iot_adu_client.h +++ b/sdk/inc/azure/iot/az_iot_adu_client.h @@ -30,9 +30,9 @@ #include /** - * @brief Define the ADU agent interface ID. + * @brief Define the ADU agent model ID. */ -#define AZ_IOT_ADU_CLIENT_AGENT_INTERFACE_ID "dtmi:azure:iot:deviceUpdateModel;1" +#define AZ_IOT_ADU_CLIENT_AGENT_MODEL_ID "dtmi:azure:iot:deviceUpdateModel;1" /** * @brief ADU Agent Version diff --git a/sdk/src/azure/iot/az_iot_adu_client.c b/sdk/src/azure/iot/az_iot_adu_client.c index b52c4d2cbe..d2d904dcb5 100644 --- a/sdk/src/azure/iot/az_iot_adu_client.c +++ b/sdk/src/azure/iot/az_iot_adu_client.c @@ -12,6 +12,8 @@ /* Define the ADU agent component name. */ #define AZ_IOT_ADU_CLIENT_AGENT_COMPONENT_NAME "deviceUpdate" +#define AZ_IOT_ADU_CLIENT_AGENT_INTERFACE_ID "dtmi:azure:iot:deviceUpdate;1" + /* Define the ADU agent property name "agent" and sub property names. */ #define AZ_IOT_ADU_CLIENT_AGENT_PROPERTY_NAME_AGENT "agent" diff --git a/sdk/tests/iot/adu/test_az_iot_adu.c b/sdk/tests/iot/adu/test_az_iot_adu.c index 58af5619a7..d2231719d7 100644 --- a/sdk/tests/iot/adu/test_az_iot_adu.c +++ b/sdk/tests/iot/adu/test_az_iot_adu.c @@ -29,14 +29,14 @@ static uint8_t expected_agent_state_payload[] = "{\"deviceUpdate\":{\"__t\":\"c\",\"agent\":{\"deviceProperties\":{\"manufacturer\":" - "\"Contoso\",\"model\":\"Foobar\",\"interfaceId\":\"dtmi:azure:iot:deviceUpdateModel;1\"," + "\"Contoso\",\"model\":\"Foobar\",\"interfaceId\":\"dtmi:azure:iot:deviceUpdate;1\"," "\"aduVer\":\"DU;agent/" "0.8.0-rc1-public-preview\"},\"compatPropertyNames\":\"manufacturer,model\",\"state\":0," "\"installedUpdateId\":\"{\\\"provider\\\":\\\"Contoso\\\",\\\"name\\\":\\\"Foobar\\\"," "\\\"version\\\":\\\"1.0\\\"}\"}}}"; static uint8_t expected_agent_state_long_payload[] = "{\"deviceUpdate\":{\"__t\":\"c\",\"agent\":{\"deviceProperties\":{\"manufacturer\":" - "\"Contoso\",\"model\":\"Foobar\",\"interfaceId\":\"dtmi:azure:iot:deviceUpdateModel;1\"," + "\"Contoso\",\"model\":\"Foobar\",\"interfaceId\":\"dtmi:azure:iot:deviceUpdate;1\"," "\"aduVer\":\"DU;agent/" "0.8.0-rc1-public-preview\"},\"compatPropertyNames\":\"manufacturer,model\"," "\"lastInstallResult\":{\"resultCode\":0,\"extendedResultCode\":1234,\"resultDetails\":"