Skip to content

Tag: struct

Reading a C-struct via sockets into python

On an embedded device running a C application, I have defined this struct: On request, I send this struct via sockets: and read it from a Python script on my desktop: This is the data printed to console on my desktop: How can i reassemble the data into a YourStruct? Note that the embedded device uses little e…