This commit is contained in:
“wangzhongjie” 2024-02-23 16:08:37 +08:00
parent e53f84b3d3
commit 3fcdefeb4e
3 changed files with 6 additions and 2 deletions

View File

@ -12,7 +12,7 @@ import { getUDP, getUDP2 } from '../common/utils/GlobleUdp'
import {initJudgeUdp} from '../common/utils/UdpJudge' import {initJudgeUdp} from '../common/utils/UdpJudge'
import { getTCP } from '../common/utils/GlobleTcp' import { getTCP } from '../common/utils/GlobleTcp'
import TcpClient from '../common/utils/TcpClient'; import TcpClient from '../common/utils/TcpClient';
import testNapi from '@ohos.hiserialsdk'
import {setliushuiNum,getSingleCenterTable,getDoubleCeneterTable} from '../common/service/indexService' import {setliushuiNum,getSingleCenterTable,getDoubleCeneterTable} from '../common/service/indexService'
@Entry @Entry
@Component @Component
@ -226,6 +226,7 @@ struct Index {
// 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]
// globalThis.udpClientByTopLine.sendMsg(Array2Byte(arr).buffer) // globalThis.udpClientByTopLine.sendMsg(Array2Byte(arr).buffer)
console.info(testNapi)
} }
async getModel() { async getModel() {
const context = this.context; const context = this.context;

View File

@ -1,6 +1,8 @@
// @ts-nocheck // @ts-nocheck
import hilog from '@ohos.hilog'; import hilog from '@ohos.hilog';
import apiJudgeSdk from 'libJudgeSdk.so'; import apiJudgeSdk from 'libJudgeSdk.so';
// import apiJudgeSdk from '@ohos.judgesdk';
import Judge from '../../judgeSDK/utils/judge-real' import Judge from '../../judgeSDK/utils/judge-real'
import {Project,ProjectObj,MarkRule} from '../../judgeSDK/api/judgeSDK.d' import {Project,ProjectObj,MarkRule} from '../../judgeSDK/api/judgeSDK.d'
import common from '@ohos.app.ability.common'; import common from '@ohos.app.ability.common';
@ -37,6 +39,7 @@ struct RealTime {
id: 'duolun_plugin_id_draw', //显示轨迹窗口id名称注意这个ID要和C++侧一致,不能变 id: 'duolun_plugin_id_draw', //显示轨迹窗口id名称注意这个ID要和C++侧一致,不能变
type: 'surface', type: 'surface',
libraryname: 'JudgeSdk' libraryname: 'JudgeSdk'
// libraryname: 'judgesdk'
}) })
.width(this.width) .width(this.width)
.height(this.height) .height(this.height)

View File

@ -1,5 +1,5 @@
import libJudgeSdk from 'libJudgeSdk.so' import libJudgeSdk from 'libJudgeSdk.so'
// import libJudgeSdk from '@ohos.judgesdk'
/** /**
* *
* @date 2023/04/10 * @date 2023/04/10