I am sending a float to the OpenMV M7 over UART as a char array. So 3.2 sent as “3.2”. Do I have to manually use some sort of loop to convert this into a float or is there any built in support for supporting conversion from byte objects to strings or floats?
Python can convert strings to floats with the:
floatnumber = float("string")
If you need to convert a bytearray() or bytes() to a string do: