Skip to content

tcp connection issue #1

@tronar

Description

@tronar

Hi,
I've just downloaded the code and was having some problems:
myList.append((data[i2+3+6]<<8) +data[i2+4+6])
IndexError: index out of range

After doing some debugging, it turns out that my device is returning the data in two packets, and your code is assuming it is always only one. I added the MSG_WAITALL option to recv()s and it seems to hold.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions