 
   //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);
 

  buf[len] = 0;
  Serial.println((char *)buf + 3);

  simple_send_recv(buf, &len, "tick-t.yunba.io", 9977);

  if (len > 0) {
    len = (uint16_t)(((uint8_t)buf[1] << 8) | (uint8_t)buf[2]);

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