receiver

class rfcentral.receiver.Receiver(console: ConsoleOutput, port: str)

Bases: Thread

NEW_LINE = b'\n'
ascending_sort(packet: bytes)
assemble_into_bytes(packets: list[bytes]) bytes
build_row_data(packets: list[bytes], sum: int) str | None
checksum_calculator(data: bytes) int
extract_length_checksum(packet: bytes) int
is_correct_checksum(checksum: int, data: bytes) bool
is_header(packet: bytes) bool
is_last_packet(packet: bytes) bool
receive() None
remove_index(packets: list[bytes]) list[bytes]
run() None

Method representing the thread’s activity.

You may override this method in a subclass. The standard run() method invokes the callable object passed to the object’s constructor as the target argument, if any, with sequential and keyword arguments taken from the args and kwargs arguments, respectively.

rfcentral.receiver.main() None