 
     connectWifi();
 
-    mqtt = new MqttWrapper("128.199.104.122", 1883, hook_before_connect);
-    // mqtt = new MqttWrapper("quickstart.messaging.internetofthings.ibmcloud.com", 1883, hook_before_connect);
+    // mqtt = new MqttWrapper("128.199.104.122", 1883, hook_before_connect);
+    mqtt = new MqttWrapper("quickstart.messaging.internetofthings.ibmcloud.com", 1883, hook_before_connect);
     mqtt->connect(callback);
     mqtt->set_before_publish_hook(hook_before_publish);
 }

    Serial.println(*(config.clientId));
    Serial.println(*(config.topic_sub));

    // *(config.clientId) = "d:quickstart:arduino:18fe34a07e58";
    // *(config.topic_pub) = "iot-2/evt/status/fmt/json";

    Serial.println("-------------------");
}

#include <MqttWrapper.h>
#include <PubSubClient.h>

const char* ssid     = "OpenWrt_NAT_500GP.101";
const char* pass = "activegateway";

#define WIFI_MAX_RETRIES 1500
#define WIFI_CONNECT_DELAY_MS 20
