tcp驗證
This commit is contained in:
		
							parent
							
								
									ca8a535eab
								
							
						
					
					
						commit
						a4065dde4c
					
				| @ -195,7 +195,7 @@ export default class TcpClient { | |||||||
|       } |       } | ||||||
|       clearInterval(globalThis.intervaltcp) |       clearInterval(globalThis.intervaltcp) | ||||||
|       globalThis.intervaltcp=setInterval(()=>{ |       globalThis.intervaltcp=setInterval(()=>{ | ||||||
|         setTimeout(async () => { |         // setTimeout(async () => {
 | ||||||
|           //程序断开
 |           //程序断开
 | ||||||
|           if (globalThis.tcpUdpError) { |           if (globalThis.tcpUdpError) { | ||||||
|             console.log(TAG,'tcp信号丢失') |             console.log(TAG,'tcp信号丢失') | ||||||
| @ -206,7 +206,7 @@ export default class TcpClient { | |||||||
|             }); |             }); | ||||||
|           } |           } | ||||||
|           globalThis.tcpUdpError = true; |           globalThis.tcpUdpError = true; | ||||||
|         }, 2000) |         // }, 2000)
 | ||||||
|       },3000) |       },3000) | ||||||
|       // callback(value.message)
 |       // callback(value.message)
 | ||||||
|     }); |     }); | ||||||
|  | |||||||
| @ -12,6 +12,7 @@ import { initJudgeUdp } from '../common/utils/UdpJudge'; | |||||||
| import { judgeConfig } from './judgeSDK/utils/judgeConfig'; | import { judgeConfig } from './judgeSDK/utils/judgeConfig'; | ||||||
| import { getTCP } from '../common/utils/GlobalTcp'; | import { getTCP } from '../common/utils/GlobalTcp'; | ||||||
| import { getliushuiNum, setliushuiNum, takePhotoFn, delHilog } from '../common/service/indexService'; | import { getliushuiNum, setliushuiNum, takePhotoFn, delHilog } from '../common/service/indexService'; | ||||||
|  | import { getUserAlbumItemByDisplayName } from '../common/service/videoService'; | ||||||
| import abilityAccessCtrl, { Permissions } from '@ohos.abilityAccessCtrl'; | import abilityAccessCtrl, { Permissions } from '@ohos.abilityAccessCtrl'; | ||||||
| import worker, { MessageEvents } from '@ohos.worker'; | import worker, { MessageEvents } from '@ohos.worker'; | ||||||
| import promptAction from '@ohos.promptAction' | import promptAction from '@ohos.promptAction' | ||||||
| @ -459,6 +460,7 @@ struct Index { | |||||||
|       } |       } | ||||||
|     }, 1000) |     }, 1000) | ||||||
|     delHilog() |     delHilog() | ||||||
|  |     // getUserAlbumItemByDisplayName() | ||||||
|     //下载模型 |     //下载模型 | ||||||
|     // await this.getModel() |     // await this.getModel() | ||||||
|     // const arr = [0x55, 0xaa, 0x01, 0x00, 0x02, 0x01, 0x03, 0x00] |     // const arr = [0x55, 0xaa, 0x01, 0x00, 0x02, 0x01, 0x03, 0x00] | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user