Concepts
Unobservable Command
Add an unobservable command to your connector.
Unlike properties, there are no prefixes for commands. In contrast to properties, command can take input parameters. You can specify the input parameters as arguments to the python function. You can also add the parameter type using python types. For more complex or custom datatypes, read the datatypes section. Add the UnobservableCommand
decorator to a method to turn it into an unobservable command.
@abc.abstractmethod
@sila.UnobservableCommand()
@sila.Response(name="Random number", description="Random description")
async def create_random_number(seed_number: int):
"""Creates a random number based on a seed input as integer."""
...