11"use client" ;
22import { RefObject , useEffect , useRef , useState } from "react" ;
3- import { IfcPVWSMessage , IfcPVWSRequest , PVWSRequestType } from "@/app/types" ;
4- import {
5- findPVInGroups ,
6- getGroupsWithBlocksFromConfigOutput ,
7- Instrument ,
8- RC_ENABLE ,
9- RC_INRANGE ,
10- SP_RBV ,
11- storePrecision ,
12- toPrecision ,
13- yesToBoolean ,
14- } from "@/app/components/Instrument" ;
153import useWebSocket from "react-use-websocket" ;
164import {
175 instListPV ,
@@ -20,14 +8,26 @@ import {
208 webSocketReconnectAttempts ,
219 webSocketReconnectInterval ,
2210} from "@/app/commonVars" ;
11+ import CheckToggle from "@/app/components/CheckToggle" ;
2312import {
2413 dehex_and_decompress ,
2514 instListFromBytes ,
2615} from "@/app/components/dehex_and_decompress" ;
16+ import Groups from "@/app/components/Groups" ;
17+ import {
18+ findPVInGroups ,
19+ getGroupsWithBlocksFromConfigOutput ,
20+ Instrument ,
21+ RC_ENABLE ,
22+ RC_INRANGE ,
23+ SP_RBV ,
24+ storePrecision ,
25+ toPrecision ,
26+ yesToBoolean ,
27+ } from "@/app/components/Instrument" ;
2728import { getPrefix , getPvValue } from "@/app/components/PVutils" ;
2829import TopBar from "@/app/components/TopBar" ;
29- import CheckToggle from "@/app/components/CheckToggle" ;
30- import Groups from "@/app/components/Groups" ;
30+ import { IfcPVWSMessage , IfcPVWSRequest , PVWSRequestType } from "@/app/types" ;
3131
3232export function InstrumentData ( { instrumentName } : { instrumentName : string } ) {
3333 const [ showHiddenBlocks , setShowHiddenBlocks ] = useState ( false ) ;
0 commit comments