|
ifw-core
5.0.0-pre2
|
Class to build or read mudpi packets. More...
Public Member Functions | |
| def | __init__ (self) |
| Class constructor. More... | |
| def | __repr__ (self) |
| def | set_topic_id (self, topic_id) |
| Set the topicId field. More... | |
| def | set_component_id (self, comp_id) |
| Set the componentId field. More... | |
| def | set_application_tag (self, app_tag) |
| Set the applicationTag field. More... | |
| def | incr_sample_id (self) |
| Set the sampleId field. More... | |
| def | set_timestamp (self, timestamp=None) |
| Set the timestamp field. More... | |
| def | set_frame_id (self, frame_id) |
| Set the frameId field. More... | |
| def | set_num_frames (self, num_frames) |
| Set the numFrames field. More... | |
| def | set_payload (self, payload) |
| Set the payload. More... | |
| def | set_checksum (self) |
| Set the checksum. More... | |
| def | pack (self, compute_checksum=None, timestamp=None) |
| Pack the frame and return it in network format. More... | |
| def | unpack (self, data) |
| Unpack a frame from given data in network format. More... | |
| def | get_payload (self) |
| Get the payload. More... | |
| def | get_sample_id (self) |
Class to build or read mudpi packets.
The MudpiPacket allows to build a mudpi packet or to unpack it and to extract the payload and all the metadata as specified by the MDUPI standard
@ingroup ifw mudpi
| def mudpi.mudpi.MudpiPacket.__init__ | ( | self | ) |
Class constructor.
| def mudpi.mudpi.MudpiPacket.__repr__ | ( | self | ) |
| def mudpi.mudpi.MudpiPacket.get_payload | ( | self | ) |
Get the payload.
| def mudpi.mudpi.MudpiPacket.get_sample_id | ( | self | ) |
| def mudpi.mudpi.MudpiPacket.incr_sample_id | ( | self | ) |
Set the sampleId field.
| def mudpi.mudpi.MudpiPacket.pack | ( | self, | |
compute_checksum = None, |
|||
timestamp = None |
|||
| ) |
Pack the frame and return it in network format.
| def mudpi.mudpi.MudpiPacket.set_application_tag | ( | self, | |
| app_tag | |||
| ) |
Set the applicationTag field.
| def mudpi.mudpi.MudpiPacket.set_checksum | ( | self | ) |
Set the checksum.
(Based on MD5 message digest algorithm
| def mudpi.mudpi.MudpiPacket.set_component_id | ( | self, | |
| comp_id | |||
| ) |
Set the componentId field.
| def mudpi.mudpi.MudpiPacket.set_frame_id | ( | self, | |
| frame_id | |||
| ) |
Set the frameId field.
| def mudpi.mudpi.MudpiPacket.set_num_frames | ( | self, | |
| num_frames | |||
| ) |
Set the numFrames field.
| def mudpi.mudpi.MudpiPacket.set_payload | ( | self, | |
| payload | |||
| ) |
Set the payload.
| payload | message payload provided as binary data. |
| def mudpi.mudpi.MudpiPacket.set_timestamp | ( | self, | |
timestamp = None |
|||
| ) |
Set the timestamp field.
| def mudpi.mudpi.MudpiPacket.set_topic_id | ( | self, | |
| topic_id | |||
| ) |
Set the topicId field.
| def mudpi.mudpi.MudpiPacket.unpack | ( | self, | |
| data | |||
| ) |
Unpack a frame from given data in network format.