sm_bluesky.common.servers#
Members
Base class for TCP instrument servers. |
|
|
|
Decorator to register a subclass method as an instrument command. |
|
Python class to create a sever that connect to HF2 data server and listen for data request from client. |
- class sm_bluesky.common.servers.AbstractInstrumentServer(host: str, port: int, ipv6: bool = False)[source]#
Base class for TCP instrument servers.
Handles socket lifecycle, connection management, and buffered command parsing. Subclasses must implement hardware-specific control logic.
- sm_bluesky.common.servers.register_command(name: bytes) Callable[[F], F][source]#
Decorator to register a subclass method as an instrument command.
- class sm_bluesky.common.servers.HF2Server(host: str = '', port: int = 7891, hf2_ip: str = '172.23.110.84', hf2_port: int = 8004, api_level: Literal[0, 1, 4, 5, 6] = 6, device_id: str = 'dev4206')[source]#
Python class to create a sever that connect to HF2 data server and listen for data request from client.