Public Member Functions | |
def | __init__ |
def | __str__ |
def | command |
def | copy |
def | data |
def | parse |
def | request |
def | validate |
Static Public Attributes | |
int | SOH = 0xAA |
int | STX = 0x55 |
Represents a message to be transmitted to / received from the hardware.
Horizon Protocol Message
Definition at line 72 of file messages.py.
def clearpath::horizon::messages::Message::__init__ | ( | self, | ||
kwargs | ||||
) |
Definition at line 128 of file messages.py.
def clearpath::horizon::messages::Message::__str__ | ( | self | ) |
Definition at line 133 of file messages.py.
def clearpath::horizon::messages::Message::command | ( | cls, | ||
name, | ||||
args = {} , |
||||
timestamp = 0 , |
||||
no_ack = False | ||||
) |
Definition at line 80 of file messages.py.
def clearpath::horizon::messages::Message::copy | ( | self, | ||
timestamp = None | ||||
) |
Return a copy of this message, with a new timestamp. This is for resending messages.
Definition at line 142 of file messages.py.
def clearpath::horizon::messages::Message::data | ( | self | ) |
Definition at line 155 of file messages.py.
def clearpath::horizon::messages::Message::parse | ( | cls, | ||
raw | ||||
) |
Definition at line 92 of file messages.py.
def clearpath::horizon::messages::Message::request | ( | cls, | ||
name, | ||||
args = {} , |
||||
timestamp = 0 | ||||
) |
Definition at line 86 of file messages.py.
def clearpath::horizon::messages::Message::validate | ( | self | ) |
Definition at line 150 of file messages.py.
int clearpath::horizon::messages::Message::SOH = 0xAA [static] |
Definition at line 76 of file messages.py.
int clearpath::horizon::messages::Message::STX = 0x55 [static] |
Definition at line 77 of file messages.py.