From bbf3c187c4967509a8097b168533786daacc2ec6 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Mon, 21 May 2018 11:17:31 +0200 Subject: rpc --- rpc/rpc.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'rpc/rpc.py') diff --git a/rpc/rpc.py b/rpc/rpc.py index 18b86d6..e8a3f9a 100644 --- a/rpc/rpc.py +++ b/rpc/rpc.py @@ -12,8 +12,8 @@ load_dotenv(find_dotenv()) class CortexRPC(object): def __init__(self, get_fn, set_fn, ready_fn): super().__init__() - self._get_fn = staticmethod(get_fn) - self._set_fn = staticmethod(set_fn) + self._get_fn = get_fn + self._set_fn = set_fn self.working = False self.connect(ready_fn) @@ -66,7 +66,7 @@ class CortexRPC(object): return 'ok' """ - def send_param(self, key, value): + def set_param(self, key, value): print('aloha. {}: {}'.format(key, value)) if self._set_fn is not None: self._set_fn(key, value) -- cgit v1.2.3-70-g09d2