 
   //TODO: if we can't get reg info and tick info
   get_host_v2(g_appkey, url);
-  get_ip_pair(url, broker_addr, &port);
+  get_ip_port(url, broker_addr, &port);
 
   setup_with_appkey_and_devid(g_appkey, g_devid);
 

        memcpy(addr, p, len);
        //sprintf(addr, "%.*s", len, p);
        *port = atoi(q + 1);
        return true;
      }
    }

  }
}

void messageReceived(String topic, String payload, char *bytes, unsigned int length) {
  Serial.println("m");
}

