зеркало из
1
0
Форкнуть 0
Jelani 2018-08-30 13:52:08 -07:00
Родитель f01f03ad51 dc18454372
Коммит 199d38e6f3
2 изменённых файлов: 10 добавлений и 1 удалений

Просмотреть файл

@ -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