String and Float
Posted: Wed Oct 21, 2015 7:08 am
Hi to everyone!
I was compiling some code with the ESP8266 and the Arduino IDE. I was trying to add a floating point value to a string inside the Up.write function. But I am always getting an error message.
How I can resolve that?
For example:
But this creates errors. Any help on that?
I was compiling some code with the ESP8266 and the Arduino IDE. I was trying to add a floating point value to a string inside the Up.write function. But I am always getting an error message.
How I can resolve that?
For example:
Code: Select all
float position;
position = 23.5;
Udp.write("Value is" + position);
But this creates errors. Any help on that?