diff --git a/binary_info/ll_sdk_client.c b/binary_info/ll_sdk_client.c index c67736d..00c77be 100644 --- a/binary_info/ll_sdk_client.c +++ b/binary_info/ll_sdk_client.c @@ -33,7 +33,7 @@ /* String containing Hostname, Device Id & Device Key in the format: */ /* Paste in the your iothub connection string */ -static const char* connectionString = "HostName=;DeviceId=;SharedAccessKey="; +static const char* connectionString = ""; #define MESSAGE_COUNT 1 static bool g_continueRunning = true; @@ -66,6 +66,12 @@ int main(void) size_t messages_sent = 0; const char* telemetry_msg = "test_message"; + if (strlen(connectionString) == 0) + { + // Attempt to get the connection string from the environment + connectionString = getenv("IOTHUB_CONNECTION_STRING"); + } + // Select the Protocol to use with the connection #ifdef USE_AMQP #ifdef USE_WEB_SOCKETS diff --git a/script/execute_analysis.sh b/script/execute_analysis.sh index 30e001e..5711c8f 100755 --- a/script/execute_analysis.sh +++ b/script/execute_analysis.sh @@ -28,6 +28,9 @@ let VSPACE=${MEMAR[0]}+${MEMAR[1]} make --jobs=$CORES +# Run strip from the binaries +./binary_info/lower_layer/ + # Run the analysis applications ./binary_info/binary_info -c $cmake_folder ./memory/telemetry_memory/telemetry_memory -c $IOTHUB_CONNECTION_STRING