Interface EnOceanMessageDescription
public interface EnOceanMessageDescription
This interface represents an EnOcean Message Description.
-
Method Summary
Modifier and TypeMethodDescriptiondeserialize
(byte[] bytes) Deserializes an array of bytes into the EnOceanChannels available to the payload, if possible.byte[]
serialize
(EnOceanChannel[] channels) Serializes a series ofEnOceanChannel
objects into the corresponding byte[] sequence.
-
Method Details
-
serialize
Serializes a series ofEnOceanChannel
objects into the corresponding byte[] sequence.- Parameters:
channels
- to be serialized.- Returns:
- serialized value.
- Throws:
IllegalArgumentException
- if the given channels is null.
-
deserialize
Deserializes an array of bytes into the EnOceanChannels available to the payload, if possible.- Parameters:
bytes
- to be deserialized.- Returns:
- deserialized value.
- Throws:
IllegalArgumentException
- if the actual instance type of the message is not compatible with the bytes it is fed with (RORG to begin with).
-
getMessageDescription
String getMessageDescription()- Returns:
- the message description containing the RORG, (and the FUNC, and the TYPE if available), as well as, the EEP's "title" (e.g. for F60201: Rocker Switch, 2 Rocker; Light and Blind Control - Application Style 1).
-