diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-05-21 11:17:31 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-05-21 11:17:31 +0200 |
| commit | bbf3c187c4967509a8097b168533786daacc2ec6 (patch) | |
| tree | 0c877269ef2d71078b930a9a328f28ddfc6b65c6 /rpc | |
| parent | b4afdf88ae53d8d20ff2aaf94e3ab3e9a882c654 (diff) | |
rpc
Diffstat (limited to 'rpc')
| -rw-r--r-- | rpc/rpc.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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) |
