text: /*
   * Copyright (C) 2015-2018 Alibaba Group Holding Limited
   */
  
  
  
  #ifndef IOTX_MQTT_CONFIG_H__
  #define IOTX_MQTT_CONFIG_H__
  
  #ifndef WITH_FAC_JSON_FLOW
      #define WITH_FAC_JSON_FLOW                 (0)
  #endif
  
  #ifndef WITH_MQTT_DYN_BUF
      #define WITH_MQTT_DYN_BUF                   (0)
  #endif
  
  #ifndef WITH_MQTT_QOS2_PACKET
      #define WITH_MQTT_QOS2_PACKET               (0)
  #endif
  
  #ifndef WITH_MQTT_FLOW_CTRL
      #define WITH_MQTT_FLOW_CTRL                 (0)
  #endif
  
  #ifndef WITH_MQTT_ONLY_QOS0
      #define WITH_MQTT_ONLY_QOS0                 (0)
  #endif
  
  #ifndef WITH_MQTT_DYN_CONNINFO
      #define WITH_MQTT_DYN_CONNINFO              (1)
  #endif
  
  #ifndef WITH_MQTT_ZIP_TOPIC
      #define WITH_MQTT_ZIP_TOPIC                 (1)
  #endif
  
  #ifndef WITH_MQTT_SUB_LOCAL
      #define WITH_MQTT_SUB_LOCAL                 (1)
  #endif
  
  /* maximum republish elements in list */
  #define IOTX_MC_REPUB_NUM_MAX                   (20)
  
  /* MQTT client version number */
  #define IOTX_MC_MQTT_VERSION                    (4)
  
  /* maximum length of topic name in byte */
  #define IOTX_MC_TOPIC_NAME_MAX_LEN              (128)
  
  /* maximum MQTT packet-id */
  #define IOTX_MC_PACKET_ID_MAX                   (65535)
  
  /* maximum number of simultaneously invoke subscribe request */
  #define IOTX_MC_SUB_REQUEST_NUM_MAX             (256)
  
  /* Minimum interval of MQTT reconnect in millisecond */
  #define IOTX_MC_RECONNECT_INTERVAL_MIN_MS       (1000)
  
  /* Maximum interval of MQTT reconnect in millisecond */
  #define IOTX_MC_RECONNECT_INTERVAL_MAX_MS       (16000)
  
  /* Minimum timeout interval of MQTT request in millisecond */
  #define IOTX_MC_REQUEST_TIMEOUT_MIN_MS          (500)
  
  /* Maximum timeout interval of MQTT request in millisecond */
  #define IOTX_MC_REQUEST_TIMEOUT_MAX_MS          (5000)
  
  /* Default timeout interval of MQTT request in millisecond */
  #define IOTX_MC_REQUEST_TIMEOUT_DEFAULT_MS      (2000)
  
  /* Max times of keepalive which has been send and did not received response package */
  #define IOTX_MC_KEEPALIVE_PROBE_MAX             (1)
  
  /* Minimum keepalive interval of MQTT request in second */
  #define KEEP_ALIVE_INTERVAL_DEFAULT_MIN         (30)
  
  /* Maximum keepalive interval of MQTT request in second */
  #define KEEP_ALIVE_INTERVAL_DEFAULT_MAX         (180)
  
  #endif  /* IOTX_MQTT_CONFIG_H__ */
  