Message

The Message base class is intended to provide a wrapper around message class implementations independent of transport layer (like TCP/IP or CAN).

class pyolcb.Message(message_type: MessageTypeIndicator, data: bytes | bytearray | None = None, source: Address | None = None, destination: Address | None = None, frame_id: int | None = None)

Event

class pyolcb.Event(event_id: str | list[int] | int | bytes | bytearray, source: Address | None = None)

Datagram

class pyolcb.Datagram(data: bytes | bytearray, source: Address, destination: Address)

Message Types

The message_types module contains all currently defined message types, packaged into a MessageTypeIndicator class to properly handle different Interface types.