зеркало из
1
0
Форкнуть 0

changing the order the of protocols being run

This commit is contained in:
jebrando 2018-11-05 15:58:14 -08:00
Родитель 09a1104214
Коммит d9761e5147
4 изменённых файлов: 20 добавлений и 17 удалений

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

@ -280,6 +280,11 @@ static int parse_command_line(int argc, char* argv[], MEM_ANALYTIC_INFO* mem_inf
static void send_heap_info(CONNECTION_INFO* conn_info, REPORT_HANDLE report_handle)
{
// MQTT Sending
#ifdef USE_MQTT
initiate_lower_level_operation(conn_info, report_handle, PROTOCOL_MQTT, MESSAGES_TO_USE, USE_MSG_BYTE_ARRAY);
initiate_lower_level_operation(conn_info, report_handle, PROTOCOL_MQTT_WS, MESSAGES_TO_USE, USE_MSG_BYTE_ARRAY);
#endif
// AMQP Sending
#ifdef USE_AMQP
initiate_lower_level_operation(conn_info, report_handle, PROTOCOL_AMQP, MESSAGES_TO_USE, USE_MSG_BYTE_ARRAY);
@ -288,13 +293,13 @@ static void send_heap_info(CONNECTION_INFO* conn_info, REPORT_HANDLE report_hand
// HTTP Sending
#ifdef USE_HTTP
//initiate_lower_level_operation(conn_info, report_handle, PROTOCOL_HTTP, MESSAGES_TO_USE, USE_MSG_BYTE_ARRAY);
// MQTT Sending
#endif
#ifdef USE_MQTT
initiate_lower_level_operation(conn_info, report_handle, PROTOCOL_MQTT, MESSAGES_TO_USE, USE_MSG_BYTE_ARRAY);
initiate_lower_level_operation(conn_info, report_handle, PROTOCOL_MQTT_WS, MESSAGES_TO_USE, USE_MSG_BYTE_ARRAY);
#endif
// MQTT Sending
#ifdef USE_MQTT
initiate_upper_level_operation(conn_info, report_handle, PROTOCOL_MQTT, MESSAGES_TO_USE, USE_MSG_BYTE_ARRAY);
initiate_upper_level_operation(conn_info, report_handle, PROTOCOL_MQTT_WS, MESSAGES_TO_USE, USE_MSG_BYTE_ARRAY);
#endif
// AMQP Sending
#ifdef USE_AMQP
initiate_upper_level_operation(conn_info, report_handle, PROTOCOL_AMQP, MESSAGES_TO_USE, USE_MSG_BYTE_ARRAY);
@ -303,11 +308,6 @@ static void send_heap_info(CONNECTION_INFO* conn_info, REPORT_HANDLE report_hand
// HTTP Sending
#ifdef USE_HTTP
//initiate_upper_level_operation(conn_info, report_handle, PROTOCOL_HTTP, MESSAGES_TO_USE, USE_MSG_BYTE_ARRAY);
#endif
// MQTT Sending
#ifdef USE_MQTT
initiate_upper_level_operation(conn_info, report_handle, PROTOCOL_MQTT, MESSAGES_TO_USE, USE_MSG_BYTE_ARRAY);
initiate_upper_level_operation(conn_info, report_handle, PROTOCOL_MQTT_WS, MESSAGES_TO_USE, USE_MSG_BYTE_ARRAY);
#endif
}

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

@ -273,15 +273,15 @@ static int parse_command_line(int argc, char* argv[], MEM_ANALYTIC_INFO* mem_inf
static void send_network_info(CONNECTION_INFO* conn_info, REPORT_HANDLE report_handle)
{
// AMQP Sending
#ifdef USE_AMQP
initiate_lower_level_operation(conn_info, report_handle, PROTOCOL_AMQP, MESSAGES_TO_USE, USE_MSG_BYTE_ARRAY);
initiate_lower_level_operation(conn_info, report_handle, PROTOCOL_AMQP_WS, MESSAGES_TO_USE, USE_MSG_BYTE_ARRAY);
#endif
// MQTT Sending
#ifdef USE_MQTT
initiate_lower_level_operation(conn_info, report_handle, PROTOCOL_MQTT, MESSAGES_TO_USE, USE_MSG_BYTE_ARRAY);
initiate_lower_level_operation(conn_info, report_handle, PROTOCOL_MQTT_WS, MESSAGES_TO_USE, USE_MSG_BYTE_ARRAY);
#endif
// AMQP Sending
#ifdef USE_AMQP
initiate_lower_level_operation(conn_info, report_handle, PROTOCOL_AMQP, MESSAGES_TO_USE, USE_MSG_BYTE_ARRAY);
initiate_lower_level_operation(conn_info, report_handle, PROTOCOL_AMQP_WS, MESSAGES_TO_USE, USE_MSG_BYTE_ARRAY);
#endif
}

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

@ -17,8 +17,11 @@ conn_string="${IOTHUB_CONNECTION_STRING}"
rm -r -f $cmake_folder
mkdir -p $cmake_folder
pushd $cmake_folder
cmake $repo_root -DCMAKE_BUILD_TYPE=Release # -Duse_prov_client:BOOL=ON
echo "Running cmake with -DCMAKE_BUILD_TYPE=Release"
cmake $repo_root -DCMAKE_BUILD_TYPE=Release >/dev/null # -Duse_prov_client:BOOL=ON
echo "Building SDK"
make -j >/dev/null
# Run strip from the binaries

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

@ -27,7 +27,7 @@ do
pushd $cmake_folder
echo "executing cmake/make with options <<$item>>"
cmake $repo_root -DCMAKE_BUILD_TYPE=Release -Dsdk_branch="$item" -Duse_http=OFF
cmake $repo_root -DCMAKE_BUILD_TYPE=Release -Dsdk_branch="$item" -Duse_http=OFF >/dev/null
echo "building SDK"
# Run make, but don't show the output