Merge branch 'dev_tcp2byte' of http://47.122.70.237:3000/harmony_car/subject-two into dev_tcp2byte
This commit is contained in:
		
						commit
						4ed37ae613
					
				| @ -113,8 +113,8 @@ function handReceiveMessage(client: socket.TCPSocket, sendData, rData: ArrayBuff | ||||
|       const start = index * 2; | ||||
|       const end = start + 1; | ||||
|       const packageIndex =  bytesToDecimal([packages[start],packages[end]]); | ||||
|       console.info(TAG, '补包内容' + JSON.stringify(new Uint8Array(sendData[packageIndex]))) | ||||
|       client.send({data:new Uint8Array(sendData[packageIndex]).buffer}); | ||||
|       console.info(TAG, '补包内容' + JSON.stringify(new Uint8Array(sendData[packageIndex-1]))) | ||||
|       client.send({data:new Uint8Array(sendData[packageIndex-1]).buffer}); | ||||
|     }) | ||||
|   } else { | ||||
|     const decoder = util.TextDecoder.create('utf-8'); | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user