Using SENDTS to send a floating point number
Posted: Sat Dec 05, 2015 8:11 pm
I'm trying to use the SENDTS function to send ThingSpeak a floating point number (a temperature value actually)
When I do this: SENDTS("APIKEYHERE",1,tempF), the data doesn't get logged on ThingSpeak. But, when I use SENDTS("APIKEYHERE",1,"1"), the value does get logged (as it's a hard coded string). Is there a way to convert an integer to a string so this value can be sent? I also tried this: SENDTS("APIKEYHERE",1,"'" & tempF & "'"), but no dice.
When I do this: SENDTS("APIKEYHERE",1,tempF), the data doesn't get logged on ThingSpeak. But, when I use SENDTS("APIKEYHERE",1,"1"), the value does get logged (as it's a hard coded string). Is there a way to convert an integer to a string so this value can be sent? I also tried this: SENDTS("APIKEYHERE",1,"'" & tempF & "'"), but no dice.