summaryrefslogtreecommitdiff
path: root/rpc/rpc.py
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-05-21 11:17:31 +0200
committerJules Laplace <julescarbon@gmail.com>2018-05-21 11:17:31 +0200
commitbbf3c187c4967509a8097b168533786daacc2ec6 (patch)
tree0c877269ef2d71078b930a9a328f28ddfc6b65c6 /rpc/rpc.py
parentb4afdf88ae53d8d20ff2aaf94e3ab3e9a882c654 (diff)
rpc
Diffstat (limited to 'rpc/rpc.py')
-rw-r--r--rpc/rpc.py6
1 files changed, 3 insertions, 3 deletions
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)