Float to String Conversion in Arduino

Thread Starter

abdulsamad4321

Joined Nov 24, 2013
38
Hi.........
I am receiving an analog value in Arduino Mega and i am transmitting it to Esp8266 serially. Please can anyone help me in converting Float value to String and also transmit it.
Thanks.
 

Thread Starter

abdulsamad4321

Joined Nov 24, 2013
38
https://playground.arduino.cc/Main/FloatToString

Where is the analog value coming from? If you are reading it from a Mega pin, i.e. using analogRead(), it is an integer from 0 to 2023.

In the case of FloatToString(), you would loop through the length of the string, sending one character at a time.

You need logic to reconstruct your value.
Thanks for your reply.....
This issue is resolved.....I have converted the received data from analog pin A1 and A0 of arduino Mega and sent it serially to esp8266.... Now just have to display it using UDP print.
 
Top