Public Member Functions | |
def | __init__ (self, cmd, pkt_type=0x68, payload=b'') |
def | add_byte (self, val) |
def | add_int16 (self, val) |
def | add_time (self, time=datetime.datetime.now()) |
def | fixup (self, seq_num=0) |
def | get_buffer (self) |
def | get_data (self) |
def | get_time (self, buf=None) |
Public Attributes | |
buf | |
Definition at line 78 of file protocol.py.
def tellopy._internal.protocol.Packet.__init__ | ( | self, | |
cmd, | |||
pkt_type = 0x68 , |
|||
payload = b'' |
|||
) |
Definition at line 79 of file protocol.py.
def tellopy._internal.protocol.Packet.add_byte | ( | self, | |
val | |||
) |
Definition at line 112 of file protocol.py.
def tellopy._internal.protocol.Packet.add_int16 | ( | self, | |
val | |||
) |
Definition at line 115 of file protocol.py.
def tellopy._internal.protocol.Packet.add_time | ( | self, | |
time = datetime.datetime.now() |
|||
) |
Definition at line 119 of file protocol.py.
def tellopy._internal.protocol.Packet.fixup | ( | self, | |
seq_num = 0 |
|||
) |
Definition at line 97 of file protocol.py.
def tellopy._internal.protocol.Packet.get_buffer | ( | self | ) |
Definition at line 106 of file protocol.py.
def tellopy._internal.protocol.Packet.get_data | ( | self | ) |
Definition at line 109 of file protocol.py.
def tellopy._internal.protocol.Packet.get_time | ( | self, | |
buf = None |
|||
) |
Definition at line 126 of file protocol.py.
tellopy._internal.protocol.Packet.buf |
Definition at line 81 of file protocol.py.