I am trying to send float values over UART to a PC and reconstruct these float values from their respective char array. How I am transferring the 32-bit float value to char is below:
float value = 42.83f;
unsigned char *ptr = &value;
And in the Python script received value is:
[236, 81, 43, 66, 4, 42]
How can I cast this char array back to 42.83f
?
Thank you!