I am trying to converting float to string , the code works fine with standard Arduino IDE but throwing the error in Spark IDE , my code looks like this… I have include #include “spark_wiring_string.h” , still no luck…
float h = dht.getHumidity();
float t = dht.getTempCelcius();
So dtostrf() is defined as a helper function in spark_wiring_string.cpp, but since it is not declared in the .h file, you would need to extern it to gain access.
It does not seem to be doc’ed in Arduino land, so I think the Spark team would have followed the doc in this case.