I am developing a program using Arduino Mega 1280 and I have the next problem.
I do not how to convert a stream of characters received by Serial port, into float. the thing is that I have a server program sending streams of numbers to the Serial port of the Arduino, this receives all data properly but I need that Arduino converts those numbers into floats, for instance if the server sends the stream of characters 25.25 or -150.963 etc, once they arrived at Serial port and Arduino reads them, how can Arduino converts those into float?
I have tried: cast conversion but it does not work. float (CX), being CX an array of char.
if anyone has an idea i would be glad to get it, thanks
Here is the code that I use to get the stream of characters .
unsigned char data =0;
- } *