feat: 完善部分jtag边界扫描websocket代码
This commit is contained in:
@@ -29,7 +29,7 @@ export const useEquipments = defineStore("equipments", () => {
|
||||
new Error("JtagClient Mutex Timeout!"),
|
||||
);
|
||||
const jtagHubConnection = new HubConnectionBuilder()
|
||||
.withUrl("/hubs/JtagHub")
|
||||
.withUrl("http://localhost:5000/hubs/JtagHub")
|
||||
.withAutomaticReconnect()
|
||||
.build();
|
||||
const jtagHubProxy =
|
||||
@@ -43,7 +43,7 @@ export const useEquipments = defineStore("equipments", () => {
|
||||
},
|
||||
);
|
||||
onMounted(() => {
|
||||
jtagHubConnection.start();
|
||||
|
||||
});
|
||||
|
||||
// Matrix Key
|
||||
@@ -87,6 +87,7 @@ export const useEquipments = defineStore("equipments", () => {
|
||||
}
|
||||
|
||||
async function jtagBoundaryScanSetOnOff(enable: boolean) {
|
||||
jtagHubConnection.start();
|
||||
enableJtagBoundaryScan.value = enable;
|
||||
if (enable) {
|
||||
jtagHubProxy.startBoundaryScan(jtagBoundaryScanFreq.value);
|
||||
|
||||
Reference in New Issue
Block a user