Current stage of the communication

The current version of the communication
This commit is contained in:
2021-05-15 23:49:45 -04:00
parent 50c170cf3f
commit 8f827a4b8e
5 changed files with 389 additions and 0 deletions

29
RPi/Topics.py Normal file
View File

@@ -0,0 +1,29 @@
### Placeholder to store objects during communication
class Topic:
def __init__(self, id, name, obj, converter, pub=None):
self._id = id
self._name = name
self._obj = obj
self._converter = converter
self._pub = pub
@property
def id(self):
return self._id
@property
def name(self):
return self._name
@property
def obj(self):
return self._obj
@property
def converter(self):
return self._converter
@property
def pub(self):
return self._pub