tomasburancgi

homeyduino

Aug 30th, 2021
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.50 KB | None | 0 0
  1. // when I received temperature my function looks like this
  2.  
  3. void onReceivedWeatherTemperature(){
  4.   WeatherTemperature  = Homey.value.toFloat();
  5.   Serial.println("weather temperature " + String(WeatherTemperature));
  6.   }
  7.  
  8. // but when I received Description of the weather I get string, right? But Homey.value.toString(); doesn't work.
  9.  
  10. void onReceivedWeatherDescription(){
  11.  
  12.   weatherDescription  = Homey.value.toString();
  13.   Serial.printf("weather description " + String(weatherDescription));
  14.   }
Add Comment
Please, Sign In to add comment