call_service Method
- call_service(master_ip: str, service_name: str, action_name: str, *args, **kwargs) dict
Call the service on the computing board.
- Parameters:
master_ip (str) – IP address of the computing board, e.g.:
192.168.99.2service_name (str) – Service name
action_name (str) – Action name supported by the service
args – Variable parameters passed to the service
kwargs – Keyword parameters passed to the service
- Returns:
A dictionary containing the call result
- Return type:
dict
- Returns:
The dictionary structure is:
{"success": True, "ret": ret}, where: -success: Boolean value indicating whether the call is successful -ret: Specific result data returned by the service