 uint8_t mac[] = {0xb0, 0x5a, 0xda, 0x3a, 0x2e, 0x7e};
 
 boolean g_net_status = false;
-char url[32];
-
-char broker_addr[32];
+char url[24];
+
+char broker_addr[24];
 uint16_t port;
 
 unsigned int g_last_check_ms = 0;
-char client_id[32];
-char username[32];
-char password[32];
+char client_id[24];
+char username[24];
+char password[16];
 
 EthernetClient net;
 MQTTClient client;
 StaticJsonBuffer<64> jsonBuffer;
 
-bool get_ip_pair(const char *url, char *addr, uint16_t *port) {
+bool get_ip_port(const char *url, char *addr, uint16_t *port) {
   char *p = strstr(url, "tcp://");
   if (p) {
     p += 6;


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

  setup_with_appkey_and_devid(g_appkey, g_devid);


  }
}

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

