diff --git a/entry/src/main/ets/tcp2byte/index.ts b/entry/src/main/ets/tcp2byte/index.ts index 5dec3f24..07b9cb2d 100644 --- a/entry/src/main/ets/tcp2byte/index.ts +++ b/entry/src/main/ets/tcp2byte/index.ts @@ -95,8 +95,8 @@ function handSendMessage(client: socket.TCPSocket, type, data) { //处理接收的数据 function handReceiveMessage(client: socket.TCPSocket, sendData, rData: ArrayBuffer): RES { - const receiveData = new Uint8Array(rData) + console.info(TAG, 'receiveData=>' + JSON.stringify(receiveData)) //返回的消息类型 const messageType = receiveData[1]; //流水号