Microsoft Azure IoTHub client MQTT transport
Dependents: STM32F746_iothub_client_sample_mqtt FXOS8700CQ_To_Azure_IoT f767zi_mqtt FXOS8700CQ_To_Azure_IoT ... more
Diff: iothubtransportmqtt.c
- Revision:
- 1:f2e563755d91
- Parent:
- 0:5e72a75c31b8
- Child:
- 2:9db4da50abaa
diff -r 5e72a75c31b8 -r f2e563755d91 iothubtransportmqtt.c --- a/iothubtransportmqtt.c Fri Mar 25 16:00:10 2016 -0700 +++ b/iothubtransportmqtt.c Fri Apr 08 13:24:20 2016 -0700 @@ -5,22 +5,22 @@ #ifdef _CRTDBG_MAP_ALLOC #include <crtdbg.h> #endif -#include "gballoc.h" +#include "azure_c_shared_utility/gballoc.h" -#include "iot_logging.h" -#include "strings.h" -#include "doublylinkedlist.h" -#include "crt_abstractions.h" +#include "azure_c_shared_utility/iot_logging.h" +#include "azure_c_shared_utility/strings.h" +#include "azure_c_shared_utility/doublylinkedlist.h" +#include "azure_c_shared_utility/crt_abstractions.h" #include "iothub_client_ll.h" #include "iothub_client_private.h" #include "iothubtransportmqtt.h" -#include "mqtt_client.h" -#include "sastoken.h" -#include "tickcounter.h" +#include "azure_umqtt_c/mqtt_client.h" +#include "azure_c_shared_utility/sastoken.h" +#include "azure_c_shared_utility/tickcounter.h" -#include "tlsio.h" -#include "platform.h" +#include "azure_c_shared_utility/tlsio.h" +#include "azure_c_shared_utility/platform.h" #include "iothub_client_version.h" @@ -29,7 +29,7 @@ #define SAS_TOKEN_DEFAULT_LIFETIME 3600 #define EPOCH_TIME_T_VALUE 0 -#define DEFAULT_MQTT_KEEPALIVE 5*60 // 5 min +#define DEFAULT_MQTT_KEEPALIVE 4*60 // 4 min #define DEFAULT_PORT_NUMBER 8883 #define DEFAULT_TEMP_STRING_LEN 256 #define BUILD_CONFIG_USERNAME 24