package constant

var MQTT_TOPIC = "/MQTT"

//设备商提供的测试地址
//var MQTT_HOST = "175.24.122.87"
//var MQTT_PORT = "1883"
//var MQTT_USER = "user111"
//var MQTT_PASSWORD = "user111"
//内网测试地址
//var MQTT_HOST = "192.168.100.222"
//var MQTT_PORT = "1883"
//var MQTT_USER = "admin"
//var MQTT_PASSWORD = "123456"

//var MQTT_HOST = "192.168.31.51"
//var MQTT_PORT = "1883"
//var MQTT_USER = ""
//var MQTT_PASSWORD = ""

//var MQTT_HOST = "175.24.122.87"
//var MQTT_PORT = "1883"
//var MQTT_USER = "user111"
//var MQTT_PASSWORD = "user111"

//内网测试地址
var MQTT_HOST = "47.97.5.102"
var MQTT_PORT = "6000"
var MQTT_USER = "admin"
var MQTT_PASSWORD = "123456"
var MQTT_UP = false

func init() {
	MQTT_HOST = Configurator.DefaultString("MQTT_HOST", MQTT_HOST)
	MQTT_PORT = Configurator.DefaultString("MQTT_PORT", MQTT_PORT)
	MQTT_USER = Configurator.DefaultString("MQTT_USER", MQTT_USER)
	MQTT_PASSWORD = Configurator.DefaultString("MQTT_PASSWORD", MQTT_PASSWORD)
	MQTT_UP = Configurator.DefaultBool("MQTT_UP", MQTT_UP)
}