@@ -309,7 +309,7 @@ class _Signals(QObject): # QObject required for signals to work
309309 _loaded_sfd : Optional [sdk .SFDInfo ]
310310 """Contains all the info about the actually loaded Scrutiny Firmware Description. ``None`` if not available"""
311311
312- _partial_watchable_downloaded_data : Dict [sdk .WatchableType , Dict [str , sdk .WatchableConfiguration ]]
312+ _partial_watchable_downloaded_data : Dict [sdk .WatchableType , Dict [str , sdk .BriefWatchableConfiguration ]]
313313
314314 def __init__ (self , watchable_registry : WatchableRegistry , client : Optional [ScrutinyClient ] = None ) -> None :
315315 super ().__init__ () # Required for signals to work
@@ -544,11 +544,11 @@ def _thread_handle_download_watchable_logic(self) -> None:
544544 content = {
545545 sdk .WatchableType .RuntimePublishedValue : data .rpv
546546 }
547- invoke_in_qt_thread_synchronized (lambda : self ._registry .write_content (content ), timeout = 2 )
547+ invoke_in_qt_thread_synchronized (lambda : self ._registry .write_content (content ), timeout = 5 )
548548 self ._signals .registry_changed .emit ()
549549 else :
550550 invoke_in_qt_thread_synchronized (lambda : self ._registry .clear_content_by_type (
551- [sdk .WatchableType .RuntimePublishedValue ]), timeout = 2 )
551+ [sdk .WatchableType .RuntimePublishedValue ]), timeout = 3 )
552552 self ._thread_state .runtime_watchables_download_request = None # Clear the request.
553553 else :
554554 pass # Downloading
@@ -566,11 +566,11 @@ def _thread_handle_download_watchable_logic(self) -> None:
566566 sdk .WatchableType .Variable : data .var ,
567567 sdk .WatchableType .Alias : data .alias ,
568568 }
569- invoke_in_qt_thread_synchronized (lambda : self ._registry .write_content (content ), timeout = 2 )
569+ invoke_in_qt_thread_synchronized (lambda : self ._registry .write_content (content ), timeout = 5 )
570570 self ._signals .registry_changed .emit ()
571571 else :
572572 invoke_in_qt_thread_synchronized (lambda : self ._registry .clear_content_by_type (
573- [sdk .WatchableType .Alias , sdk .WatchableType .Variable ]), timeout = 2 )
573+ [sdk .WatchableType .Alias , sdk .WatchableType .Variable ]), timeout = 3 )
574574 self ._thread_state .sfd_watchables_download_request = None # Clear the request.
575575 else :
576576 pass # Downloading
@@ -634,11 +634,11 @@ def clear_func() -> None:
634634 if ctx .had_data :
635635 self ._signals .registry_changed .emit ()
636636
637- def _make_var_watchable_from_factories (self , var_factories : Dict [str , sdk .VariableFactoryInterface ]) -> Dict [str , sdk .WatchableConfiguration ]:
637+ def _make_var_watchable_from_factories (self , var_factories : Dict [str , sdk .VariableFactoryInterface ]) -> Dict [str , sdk .BriefWatchableConfiguration ]:
638638 """Take the variable factories received from the server and generate all the var watchables from them.
639639 Might drop some of them to avoid bloating the registry with large buffers
640640 """
641- outdict : Dict [str , sdk .WatchableConfiguration ] = {}
641+ outdict : Dict [str , sdk .BriefWatchableConfiguration ] = {}
642642 var_factories_filt : List [sdk .VariableFactoryInterface ] = []
643643 # Start by removing var factory that generate too many elements
644644 for access_path , factory in var_factories .items ():
@@ -824,15 +824,15 @@ def ui_callback(expected_error: Optional[Exception], unexpected_error: Optional[
824824 raise NotImplementedError (f"Unsupported state: { registration_status .active_state } " )
825825
826826 @enforce_thread (QT_THREAD_NAME )
827- def _qt_registry_watch_callback (self , watcher_id : Union [str , int ], server_path : str , watchable_config : sdk .WatchableConfiguration , registry_id : int ) -> None :
827+ def _qt_registry_watch_callback (self , watcher_id : Union [str , int ], server_path : str , watchable_config : sdk .BriefWatchableConfiguration , registry_id : int ) -> None :
828828 """Called when a gui component register a watcher on the registry"""
829829 # Runs from QT thread
830830 watcher_count = self ._registry .node_watcher_count (watchable_config .watchable_type , server_path )
831831 if watcher_count is not None and watcher_count > 0 :
832832 self ._qt_maybe_request_watch (watchable_config .watchable_type , server_path )
833833
834834 @enforce_thread (QT_THREAD_NAME )
835- def _qt_registry_unwatch_callback (self , watcher_id : Union [str , int ], server_path : str , watchable_config : sdk .WatchableConfiguration , registry_id : int ) -> None :
835+ def _qt_registry_unwatch_callback (self , watcher_id : Union [str , int ], server_path : str , watchable_config : sdk .BriefWatchableConfiguration , registry_id : int ) -> None :
836836 """Called when a gui component unregister a watcher on the registry"""
837837 # Runs from QT thread
838838 watcher_count = self ._registry .node_watcher_count (watchable_config .watchable_type , server_path )
0 commit comments