Sparkfun blynk botani tweeting

Greetings,

I noticed an earlier topic that covered this but no resolution. I’ve run through this project 10 times with no success. All is correct plus even tried programming directly with arduino IDE but still no tweets. I’m betting it’s something simple that is not included. The widget seems simple but can’t find a good way to test or even run it. My twitter account seems to be configured correctly as well.

Any help would be appreciated.

I’ve wiped the spark fun board a couple times trying different sample arduino pgms.

https://learn.sparkfun.com/tutorials/blynk-board-project-guide/project-12-botanitweeting

Hello. Please show your code.

Hi Dmitriy,

I pulled this code from Sparkfuns Firmware for the SparkFun Blynk board.

/* 13 13 13 13 13 13 13 13 13 13 13 13 13
13 Experiment 13: Twitter 13
13 Widget(s): 13
13 - Twitter: Connect account 13
13 - Button: TweeEn, V22, Switch 13
13 - Slider: Threshold, V23, 1023 13
13 - Slider: Rate, V24, 0-60 13
13 13 13 13 13 13 13 13 13 13 13 13 13 */
// Tweets are sent in blynkLoop. These functions set enable
// flags and other twitter-controlling parameters.
unsigned long tweetUpdateRate = 60000; // Default tweet rate (ms)
unsigned long lastTweetUpdate = 0; // Last tweet flag
unsigned int moistureThreshold = 512; // Low-moisture setting

BLYNK_WRITE(TWITTER_THRESHOLD_VIRTUAL)
{
moistureThreshold = param.asInt();
BB_DEBUG("Tweet threshold set to: " + String(moistureThreshold));
}

BLYNK_WRITE(TWITTER_RATE_VIRTUAL)
{
int tweetRate = param.asInt();
if (tweetRate <= 0) tweetRate = 1;
BB_DEBUG(“Setting tweet rate to " + String(tweetRate) + " minutes”);
tweetUpdateRate = tweetRate * 60 * 1000;
}

bool twitterUpdate(void)
{
unsigned int moisture = analogRead(A0);
if (moisture < moistureThreshold)
{
String msg = boardName + " thirsty!\r\nSoil reading: " + String(moisture) + “\r\n”;
msg += “[” + String(millis()) + “]”;
BB_DEBUG("Tweeting: " + msg);
Blynk.tweet(msg);
return true;
}
return false;
}

Maybe total length of message is big? Twitter doesn’t accept messages larger than 140 chars.