title: Converting a float in chars to float (PYTHON)
body: <p>I have a program in python in which I want to receive a frame with some values. This values are sent by a xbee. </p>
  
  <p>Xbee send a float splitted in 4 bytes by a union struct, something like this:</p>
  
  <pre><code>typedef union _data{
      float f;
      char s[4];
  } myFloat;
  </code></pre>
  
  <p>So for example, 17.23 gives me 10, -41, -119, 65. So, I have to recover all these values in python and after I got 4, convert them into a float. What do I have to do since I read each one (serial.read()) to get the float resultant?</p>
  
  <p>Those values will be received by python script and I want to join them again into a float. I read about struct in python but I am not good skill in python and I don't understand how it works.</p>
  
  <p>I read bytes one by one using serial.read.</p>
  
  <p>Any idea?</p>