refactor: 增加注释以完善UDP信号处理逻辑
This commit is contained in:
parent
a7a9bd1acc
commit
13ea6937b3
@ -90,6 +90,7 @@ export default class UdpClient {
|
||||
}
|
||||
}
|
||||
|
||||
// 获取后置机信号
|
||||
class ObjUdpClient extends UdpClient {
|
||||
async init(context: common.UIAbilityContext) {
|
||||
try {
|
||||
@ -107,6 +108,7 @@ class ObjUdpClient extends UdpClient {
|
||||
}
|
||||
}
|
||||
|
||||
// 给中心发送消息
|
||||
class CenterUDPClient extends UdpClient {
|
||||
async init(context: common.UIAbilityContext) {
|
||||
try {
|
||||
@ -125,6 +127,7 @@ class CenterUDPClient extends UdpClient {
|
||||
}
|
||||
}
|
||||
|
||||
// 顶灯
|
||||
class LightUDPClient extends UdpClient {
|
||||
async init(context: common.UIAbilityContext) {
|
||||
try {
|
||||
|
||||
@ -35,6 +35,7 @@ class obtainSignalData {
|
||||
// 一代机
|
||||
|
||||
// 二代机
|
||||
|
||||
// 三代机 通过UDP onMessage获取信号
|
||||
if (this.modelNo === "3") {
|
||||
this.thirdGenerationMachineUdp.onMessage((data: ArrayBuffer) => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user