Hi im trying to parse this bit of code its hex returned from a device. I would like it to give me the number after the x that i specify in this case between 3 and 7 characters…
Im expecting 01
Temphex is a list (no .find() method). The first and only element of Temphex (Temphex[0]) is a byte() object, with several methods (dir(byte()). Also you can use slicing in bytes() or iterate trhought each element of Temphex[0].