Question

I need to explode python byte array data ?

I getting my websocket recieving data and now i want to add this data to mysql database.but i’m not familiar with python programming.so recieved data,

b’\xff\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xe4\x05\xd7\x00\x00\x00{“Address”:“0x7F01A8C0”, “Channel”:0, “Descrip”:“admin”, “Event”:“LogIn”, “SerialID”:“86aad3ae5507e4c3”, “StartTime”:“2017-09-27 15:45:11”, “Status”:“Start”, “Type”:“Log”}’

so i need to explode these data using index.


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer