-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing device class #24
Comments
I have (at least so far) left this out on purpose, as in my use-case I have implemented a similar solution in elsewhere in my code. Of course, it wouldn't hurt to have a "meta" -class from which to inherit the use-case specific solutions... |
Yeah, seems like it's worth implementing with issue #26. As I'm currently implementing the storage, the prototype for class Device(object):
id = [0xDE, 0xAD, 0xBE, 0xEF]
eep_rorg = 0x00
eep_func = 0x00
eep_type = 0x00
transmitter_offset = None
@staticmethod
def from_dict(self, dictionary):
return new DeviceObject
def to_dict(self):
return {
'eep_rorg': self.eep_rorg,
'eep_func': self.eep_func,
'eep_type': self.eep_type,
'transmitter_offset': self.transmitter_offset,
} |
Oh, and also to note, I'm currently implementing the storage to |
I would like to share the way I've implemented the device, just in case it provides helpful. I've you agree with this reasoning, I will make a pull request on which we could comment more.
|
Thanks, I'm actually in the progress of implementing something fairly similar as part of storage (issue #26 ). I'm more likely to implement a very basic |
So far I have a successful communication example of controlling an EnOcean actuator.
I seem to be missing a Devce class which would represent a device.
Use case example:
Device object
is initialised withprofile
andchipid
received from the TEACHIN packetchipid
we map it to theDevice object
and have the profile for data packets.I will start an implementation and if it matures will make a pull request
The text was updated successfully, but these errors were encountered: