Jul-24-2019, 11:05 AM
(This post was last modified: Jul-24-2019, 11:07 AM by Gribouillis.)
What I see in the code is that you're sending the output of
con_dat()
through the socketlabeler_datasend = con_dat(aa_labeler_frame) ... labeler_socket.send(labeler_datasend)I don't understand what
con_dat()
does but I see that it returns the python type str
and not a type bytes
because there are statements such as rawconvertdata = ''
(instead of = b''
) or like rawhexstring = str(rawdata)
, etc. So the first thing to do seems to clean up this function so that it returns the binary string that the labeller is expecting.