中心udp修改

This commit is contained in:
lvyuankang 2024-07-10 14:31:55 +08:00
parent 5770833621
commit 514d3beb60
2 changed files with 7 additions and 1 deletions

View File

@ -5,6 +5,11 @@
"path": "./src/main/cpp/CMakeLists.txt",
"arguments": "",
"cppFlags": "",
},
"sourceOption": {
"workers": [
'./src/main/ets/workers/worker.ts'
]
}
},
"targets": [
@ -16,3 +21,4 @@
}
]
}

View File

@ -69,7 +69,7 @@ export async function getUDP2() {
udpClient2.bindUdp()
udpClient2.onError_Callback()
udpClient2.onMessage_1((val) => {
udpClient2.onMessage_2((val) => {
if (val.id == '32') {
globalThis.signNum = val.body[1]