def dump_packet(file, packet):
    pid, length, data = packet
    file.write(struct.pack("<HH", pid, length))
    if data: file.write(data.raw)
Dump the given packet to file.
dataset/ETHPy150Open braiden/python-ant-downloader/antd/garmin.py/dump_packet