温度修改
This commit is contained in:
@@ -252,9 +252,7 @@ export default {
|
||||
uni.downloadFile({
|
||||
url: this.deviceInfo.filePath,
|
||||
success: (res) => {
|
||||
console.log(res)
|
||||
pathToBase64(res.tempFilePath).then((res) => {
|
||||
console.log(res)
|
||||
this.topoImg = res
|
||||
})
|
||||
},
|
||||
@@ -321,7 +319,7 @@ export default {
|
||||
this.client = mqtt.connect('wx://' + MQTT_IP, MQTT_OPTIONS)
|
||||
// #endif
|
||||
// #ifdef H5
|
||||
this.client = mqtt.connect('wss://' + MQTT_IP, MQTT_OPTIONS)
|
||||
this.client = mqtt.connect('ws://' + MQTT_IP, MQTT_OPTIONS)
|
||||
// #endif
|
||||
this.client
|
||||
.on('connect', () => {
|
||||
@@ -371,6 +369,13 @@ export default {
|
||||
// }
|
||||
// })
|
||||
this.IOData = JSON.parse(message.toString())
|
||||
this.IOData.forEach(item=>{
|
||||
if(item.value === 0){
|
||||
item.value = '0'
|
||||
}else if(!item.value){
|
||||
item.value = ''
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user