差分状态提示修改

This commit is contained in:
lvyuankang 2024-09-14 09:06:38 +08:00
parent 811d3bda7a
commit d3e022cba8

View File

@ -353,6 +353,10 @@ export default class UdpClientByCenter {
// getUDP(globalThis.context,true) // getUDP(globalThis.context,true)
globalThis.title='差分状态异常' globalThis.title='差分状态异常'
globalThis.type='3' globalThis.type='3'
prompt.showToast({
message: '差分状态异常',
duration: 2000
});
// AppStorage.SetOrCreate('errorCode', 1); // AppStorage.SetOrCreate('errorCode', 1);
// if(this.errorStep!=1){ // if(this.errorStep!=1){
// this.errorStep=1 // this.errorStep=1
@ -424,6 +428,10 @@ export default class UdpClientByCenter {
lightLineUdp?.send(this.plcUdpError ? arrRedBuffer : (isJudge ? arrGreenBugger : arrBlueBuffer)); lightLineUdp?.send(this.plcUdpError ? arrRedBuffer : (isJudge ? arrGreenBugger : arrBlueBuffer));
if (this.plcUdpError) { if (this.plcUdpError) {
num++ num++
this.writeLog({
time:dateFormat(new Date()),
PLC: 'plc udp信号丢失',
})
console.log(TAG, 'plc udp信号丢失') console.log(TAG, 'plc udp信号丢失')
if (num == 3) { if (num == 3) {
getUDP(globalThis.context,true) getUDP(globalThis.context,true)