接口对接
This commit is contained in:
11
common/js/mqtt.js
Normal file
11
common/js/mqtt.js
Normal file
@@ -0,0 +1,11 @@
|
||||
export const MQTT_IP = '60.204.148.71:9001'//mqtt地址端口, 使用emqx时一定要加mqtt
|
||||
const MQTT_USERNAME = 'test'//mqtt用户名
|
||||
const MQTT_PASSWORD = 'test'//密码
|
||||
|
||||
export const MQTT_OPTIONS = {
|
||||
connectTimeout: 5000,
|
||||
clientId: '',
|
||||
username: MQTT_USERNAME,
|
||||
password: MQTT_PASSWORD,
|
||||
clean: false
|
||||
}
|
||||
Reference in New Issue
Block a user