Merge branch 'master' of https://github.com/Azure/azure-iot-c-analysis
This commit is contained in:
Коммит
199d38e6f3
|
@ -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=<hostname>;DeviceId=<deviceId>;SharedAccessKey=<shared_access_key>";
|
||||
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
|
||||
|
|
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче