I asked this question before to know how to convert the byes to ints here: and now I have a different situation.
Send data to from Arduino to Raspberry using bluetooth hc-05 and python - Byte conversion
The HC-05 is connected to pin 1 and 2 in arduino TX to RX and RX to TX (PI, Arduino).
The solution kindly sent was the function int.frombytes. That worked ok. But the only numbers I could see were 255, 254, 255, 10, 255, 254.
I tried unplugging the usb cable form the pc and powering the arduino from a battery and same thing happened.
Now, I modified the sketch from arduino to send only the number 2 and in raspi python I still receive 255, 254, 255, 10, 254, 255.
Has anyone had the same problem?