差分状态提示修改
This commit is contained in:
parent
811d3bda7a
commit
d3e022cba8
@ -353,6 +353,10 @@ export default class UdpClientByCenter {
|
||||
// getUDP(globalThis.context,true)
|
||||
globalThis.title='差分状态异常'
|
||||
globalThis.type='3'
|
||||
prompt.showToast({
|
||||
message: '差分状态异常',
|
||||
duration: 2000
|
||||
});
|
||||
// AppStorage.SetOrCreate('errorCode', 1);
|
||||
// if(this.errorStep!=1){
|
||||
// this.errorStep=1
|
||||
@ -424,6 +428,10 @@ export default class UdpClientByCenter {
|
||||
lightLineUdp?.send(this.plcUdpError ? arrRedBuffer : (isJudge ? arrGreenBugger : arrBlueBuffer));
|
||||
if (this.plcUdpError) {
|
||||
num++
|
||||
this.writeLog({
|
||||
time:dateFormat(new Date()),
|
||||
PLC: 'plc udp信号丢失',
|
||||
})
|
||||
console.log(TAG, 'plc udp信号丢失')
|
||||
if (num == 3) {
|
||||
getUDP(globalThis.context,true)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user