I've set up a Twitter dev account. I've even posted a couple of test tweets.
AWESOME!
However, where I'm stuck is coding it up to do something actually useful as opposed to the same message once an hour.
At the start of the void loop is where the example code has a place to enter in that single message. It also has a comment about if you wanted to add a sensor, you'd need to "then nicely format the results into a buffer to be passed to the sendTweet() function."
Ah, see, there is my issue. I can easily read a sensor (I'm using the BMP180) and turn that value into a String that says;
"Temp 70F"
Code: Select all
//*** BMP180 stuff
tF = ((bmp.readTemperature()*9/5)+32); //Note tF is an int variable.
stringTwo = "Temp " + tF + 'F';
//*** End BMP180 stuff
sendTweet(stringTwo);
Dang.
How can I "nicely format the results into a buffer to be passed to the sendTweet() function"?