Report this

What is the reason for this report?

I need to explode python byte array data ?

Posted on September 29, 2017

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.



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!

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.