V.06 11/3

Dependencies:   FT6206 SDFileSystem SPI_TFT_ILI9341 TFT_fonts

Fork of ATT_AWS_IoT_demo by attiot

Revision:
29:f71a0be59b99
Parent:
15:6f2798e45099
--- a/AWS_openssl/aws_iot_src/protocol/mqtt/aws_iot_embedded_client_wrapper/aws_iot_mqtt_embedded_client_wrapper.cpp	Mon Oct 09 21:13:49 2017 +0000
+++ b/AWS_openssl/aws_iot_src/protocol/mqtt/aws_iot_embedded_client_wrapper/aws_iot_mqtt_embedded_client_wrapper.cpp	Fri Nov 03 20:28:02 2017 +0000
@@ -18,6 +18,8 @@
 #include "aws_iot_config.h"
 #include "aws_iot_log.h"
 
+extern char *aws_iot_mqtt_host;
+
 static Client c;
 
 static iot_disconnect_handler clientDisconnectHandler;
@@ -27,7 +29,8 @@
 
 const MQTTConnectParams MQTTConnectParamsDefault = {
 		.enableAutoReconnect = 0,
-		.pHostURL = AWS_IOT_MQTT_HOST,
+		//.pHostURL = AWS_IOT_MQTT_HOST,
+		.pHostURL = aws_iot_mqtt_host,
 		.port = AWS_IOT_MQTT_PORT,
 		.pRootCALocation = NULL,
 		.pDeviceCertLocation = NULL,