diff --git a/sdk/samples/iot/paho_iot_hub_c2d_sample.c b/sdk/samples/iot/paho_iot_hub_c2d_sample.c index 632a8ad528..04546a058e 100644 --- a/sdk/samples/iot/paho_iot_hub_c2d_sample.c +++ b/sdk/samples/iot/paho_iot_hub_c2d_sample.c @@ -129,6 +129,8 @@ static void connect_mqtt_client_to_iot_hub(void) exit(rc); } + IOT_SAMPLE_LOG("MQTT client username: %s\n", mqtt_client_username_buffer); + // Set MQTT connection options. MQTTClient_connectOptions mqtt_connect_options = MQTTClient_connectOptions_initializer; mqtt_connect_options.username = mqtt_client_username_buffer; diff --git a/sdk/samples/iot/paho_iot_hub_methods_sample.c b/sdk/samples/iot/paho_iot_hub_methods_sample.c index 2cb02cf2b1..65a142cff0 100644 --- a/sdk/samples/iot/paho_iot_hub_methods_sample.c +++ b/sdk/samples/iot/paho_iot_hub_methods_sample.c @@ -145,6 +145,8 @@ static void connect_mqtt_client_to_iot_hub(void) exit(rc); } + IOT_SAMPLE_LOG("MQTT client username: %s\n", mqtt_client_username_buffer); + // Set MQTT connection options. MQTTClient_connectOptions mqtt_connect_options = MQTTClient_connectOptions_initializer; mqtt_connect_options.username = mqtt_client_username_buffer; diff --git a/sdk/samples/iot/paho_iot_hub_pnp_component_sample.c b/sdk/samples/iot/paho_iot_hub_pnp_component_sample.c index 16b6e98907..3b9ec8d7bc 100644 --- a/sdk/samples/iot/paho_iot_hub_pnp_component_sample.c +++ b/sdk/samples/iot/paho_iot_hub_pnp_component_sample.c @@ -372,6 +372,8 @@ static void connect_mqtt_client_to_iot_hub(void) exit(rc); } + IOT_SAMPLE_LOG("MQTT client username: %s\n", mqtt_client_username_buffer); + // Set MQTT connection options. MQTTClient_connectOptions mqtt_connect_options = MQTTClient_connectOptions_initializer; mqtt_connect_options.username = mqtt_client_username_buffer; diff --git a/sdk/samples/iot/paho_iot_hub_pnp_sample.c b/sdk/samples/iot/paho_iot_hub_pnp_sample.c index 93afe2a46d..7fcf91fff5 100644 --- a/sdk/samples/iot/paho_iot_hub_pnp_sample.c +++ b/sdk/samples/iot/paho_iot_hub_pnp_sample.c @@ -297,6 +297,8 @@ static void connect_mqtt_client_to_iot_hub(void) exit(rc); } + IOT_SAMPLE_LOG("MQTT client username: %s\n", mqtt_client_username_buffer); + // Set MQTT connection options. MQTTClient_connectOptions mqtt_connect_options = MQTTClient_connectOptions_initializer; mqtt_connect_options.username = mqtt_client_username_buffer; diff --git a/sdk/samples/iot/paho_iot_hub_sas_telemetry_sample.c b/sdk/samples/iot/paho_iot_hub_sas_telemetry_sample.c index 224aa51392..8c7693d6a4 100644 --- a/sdk/samples/iot/paho_iot_hub_sas_telemetry_sample.c +++ b/sdk/samples/iot/paho_iot_hub_sas_telemetry_sample.c @@ -123,6 +123,8 @@ static void connect_mqtt_client_to_iot_hub(void) exit(rc); } + IOT_SAMPLE_LOG("MQTT client username: %s\n", mqtt_client_username_buffer); + // Set MQTT connection options. MQTTClient_connectOptions mqtt_connect_options = MQTTClient_connectOptions_initializer; mqtt_connect_options.username = mqtt_client_username_buffer; diff --git a/sdk/samples/iot/paho_iot_hub_telemetry_sample.c b/sdk/samples/iot/paho_iot_hub_telemetry_sample.c index c80ebfd76d..715011366e 100644 --- a/sdk/samples/iot/paho_iot_hub_telemetry_sample.c +++ b/sdk/samples/iot/paho_iot_hub_telemetry_sample.c @@ -113,6 +113,8 @@ static void connect_mqtt_client_to_iot_hub(void) exit(rc); } + IOT_SAMPLE_LOG("MQTT client username: %s\n", mqtt_client_username_buffer); + // Set MQTT connection options. MQTTClient_connectOptions mqtt_connect_options = MQTTClient_connectOptions_initializer; mqtt_connect_options.username = mqtt_client_username_buffer; diff --git a/sdk/samples/iot/paho_iot_hub_twin_sample.c b/sdk/samples/iot/paho_iot_hub_twin_sample.c index 67c445e87d..ec01ccc41c 100644 --- a/sdk/samples/iot/paho_iot_hub_twin_sample.c +++ b/sdk/samples/iot/paho_iot_hub_twin_sample.c @@ -161,6 +161,8 @@ static void connect_mqtt_client_to_iot_hub(void) exit(rc); } + IOT_SAMPLE_LOG("MQTT client username: %s\n", mqtt_client_username_buffer); + // Set MQTT connection options. MQTTClient_connectOptions mqtt_connect_options = MQTTClient_connectOptions_initializer; mqtt_connect_options.username = mqtt_client_username_buffer; @@ -444,7 +446,7 @@ static bool parse_desired_device_count_property( if (jr.token.kind != AZ_JSON_TOKEN_BEGIN_OBJECT) { IOT_SAMPLE_LOG( - "`%.*s` property was not found in desired property response.", + "`%.*s` property was not found in desired property message.", az_span_size(property), az_span_ptr(property)); return false; diff --git a/sdk/samples/iot/paho_iot_provisioning_sample.c b/sdk/samples/iot/paho_iot_provisioning_sample.c index 4705561161..9df1020f57 100644 --- a/sdk/samples/iot/paho_iot_provisioning_sample.c +++ b/sdk/samples/iot/paho_iot_provisioning_sample.c @@ -137,6 +137,8 @@ static void connect_mqtt_client_to_provisioning_service(void) exit(rc); } + IOT_SAMPLE_LOG("MQTT client username: %s\n", mqtt_client_username_buffer); + // Set MQTT connection options. MQTTClient_connectOptions mqtt_connect_options = MQTTClient_connectOptions_initializer; mqtt_connect_options.username = mqtt_client_username_buffer; diff --git a/sdk/samples/iot/paho_iot_provisioning_sas_sample.c b/sdk/samples/iot/paho_iot_provisioning_sas_sample.c index 43be7595a8..86717a6b3d 100644 --- a/sdk/samples/iot/paho_iot_provisioning_sas_sample.c +++ b/sdk/samples/iot/paho_iot_provisioning_sas_sample.c @@ -148,6 +148,8 @@ static void connect_mqtt_client_to_provisioning_service(void) exit(rc); } + IOT_SAMPLE_LOG("MQTT client username: %s\n", mqtt_client_username_buffer); + // Set MQTT connection options. MQTTClient_connectOptions mqtt_connect_options = MQTTClient_connectOptions_initializer; mqtt_connect_options.username = mqtt_client_username_buffer;