Browse Source

mqtt topic

master
lxc 2 years ago
parent
commit
b07a94aef8
  1. 4
      lmp_v0.3.9/src/com/lpro/iot/common/Config.java

4
lmp_v0.3.9/src/com/lpro/iot/common/Config.java

@ -21,13 +21,13 @@ public class Config {
public static String IOT_LPM_KEY = PropertiesUtil.getProperty("iot.lpm.key"); public static String IOT_LPM_KEY = PropertiesUtil.getProperty("iot.lpm.key");
// 设备协议列表 // 设备协议列表
public static String IOT_PROTOCAL = "ProtocalHj212" ; public static String IOT_PROTOCAL = "ProtocalHj212,ProtocalMing,ProtocalModbus,ProtocalModbusTcp" ;
public static String IOT_MQTT_HOST = PropertiesUtil.getProperty("iot.mqtt.host"); public static String IOT_MQTT_HOST = PropertiesUtil.getProperty("iot.mqtt.host");
public static String IOT_MQTT_CLIENTID = IOT_LPM_KEY; public static String IOT_MQTT_CLIENTID = IOT_LPM_KEY;
public static String IOT_MQTT_TOPIC = "/lpm/" + IOT_LPM_KEY +",/transmit/device" ; public static String IOT_MQTT_TOPIC = "/lpm,/lpm/" + IOT_LPM_KEY +",/transmit/device" ;
public static String IOT_MQTT_USERNAME = PropertiesUtil.getProperty("iot.mqtt.userName"); public static String IOT_MQTT_USERNAME = PropertiesUtil.getProperty("iot.mqtt.userName");

Loading…
Cancel
Save