DiamondLightSource / tickit

Event-based hardware simulation framework
Apache License 2.0
7 stars 0 forks source link

Command Interpreter does not cast messages to correct types #74

Closed abbiemery closed 2 years ago

abbiemery commented 2 years ago

When the command interpreter handles messages (from the commands registered against adapter methods) the message remains as a string instead of being cast to the type defined in the command.

This becomes an issue when using both a TCP and epics adapter on a single device. Numeric device parameters set via TCP are set as strings instead. When epics adapter tries to update the record with this new value, pythonSoftIOC hangs as it fails to convert string to numeric ctype. In this case string -> c_double.