Merge branch 'dev_tcp2byte' of http://47.122.70.237:3000/harmony_car/subject-two into dev_tcp2byte
This commit is contained in:
		
						commit
						21dec3fff1
					
				| @ -113,10 +113,10 @@ function handReceiveMessage(client: socket.TCPSocket, sendData, receiveData):RES | ||||
|   }else{ | ||||
|     const decoder =  util.TextDecoder.create('utf-8'); | ||||
|     const messageLength = bytesToDecimal([receiveData[9],receiveData[10]]); | ||||
|     const markLength = receiveData[11]; | ||||
|     const markLength = receiveData[11].buffer; | ||||
|     const markContent = decoder.decodeWithStream(receiveData.slice(12, 12 + markLength )); | ||||
|     console.info(TAG, 'markContent=>' + markContent) | ||||
|     const tipLength = receiveData[13]; | ||||
|     const tipLength = receiveData[13].buffer; | ||||
|     const messageContent = decoder.decodeWithStream(receiveData.slice(13 + markLength, 13 + markLength + tipLength)); | ||||
|     console.info(TAG, 'messageContent=>' + messageContent) | ||||
|     return { | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user