I need to explode python byte array data ?

Posted September 29, 2017 1.8k views

I getting my websocket recieving data and now i want to add this data to mysql database.but i’m not familiar with python 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

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