Hello, using the twitter example. and it doesnt post on twitter anymore, What is wrong? Is not the same text.
Very informative and detailed question… not…
This isn’t the twitter forum… how would we know if it is up or down
If you did have it working before, then perhaps you exceeded the 1 tweet per 15 seconds rule… as documented.
http://docs.blynk.cc/#widgets-notifications-twitter
Not sure how long you will have to wait to twit again… probably mentions something about that on the Twitter site
it isnt that, Not even the Startup Welcome message works anymore.
/*************************************************************
Download latest Blynk library here:
https://github.com/blynkkk/blynk-library/releases/latest
Blynk is a platform with iOS and Android apps to control
Arduino, Raspberry Pi and the likes over the Internet.
You can easily build graphic interfaces for all your
projects by simply dragging and dropping widgets.
Downloads, docs, tutorials: http://www.blynk.cc
Sketch generator: http://examples.blynk.cc
Blynk community: http://community.blynk.cc
Follow us: http://www.fb.com/blynkapp
http://twitter.com/blynk_app
Blynk library is licensed under MIT license
This example code is in public domain.
*************************************************************
Simple tweet example
App project setup:
Twitter widget (connect it to your Twitter account!)
Connect a button to pin 2 and GND...
Pressing this button will also tweet a message! ;)
*************************************************************/
/* Comment this out to disable prints and save space */
#define BLYNK_PRINT Serial
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "3";
// Your WiFi credentials.
// Set password to "" for open networks.
char ssid[] = "Wr";
char pass[] = "ks";
BlynkTimer timer;
void tweetUptime()
{
long uptime = millis() / 60000L;
Serial.println("Tweeting every 10 minutes ;)");
// Actually send the message.
// Note:
// We allow 1 tweet per 15 seconds for now.
// Twitter doesn't allow identical subsequent messages.
Blynk.tweet(String("Running for ") + uptime + " minutes.");
}
void tweetOnButtonPress()
{
// Invert state, since button is "Active LOW"
int isButtonPressed = !digitalRead(2);
if (isButtonPressed) {
Serial.println("Button is pressed.");
Blynk.tweet("Yaaay... button is pressed! :)\n #arduino #IoT #blynk @blynk_app");
}
}
void setup()
{
// Debug console
Serial.begin(9600);
Blynk.begin(auth, ssid, pass);
// You can also specify server:
//Blynk.begin(auth, ssid, pass, "blynk-cloud.com", 8442);
//Blynk.begin(auth, ssid, pass, IPAddress(192,168,1,100), 8442);
// Tweet immediately on startup
Blynk.tweet("My Arduino project is tweeting usingsddd @blynk_app and it’s awesome!\n #arduino #IoT #blynk");
// Setup a function to be called every 10 minutes
timer.setInterval(10L * 60000L, tweetUptime);
// Setup twitter button on pin 2
pinMode(2, INPUT_PULLUP);
// Attach pin 2 interrupt to our handler
attachInterrupt(digitalPinToInterrupt(2), tweetOnButtonPress, CHANGE);
}
void loop()
{
Blynk.run();
timer.run();
}
here is the code, if it matters, Dont know why it isnt posting anymore, was wondering if the blynk app twitter widget was down or something. Here i have also change the startup message so it isnt the same.
You can’t post same message many times.
thats what i said My Arduino project is tweeting usingsddd @blynk_app and it’s awesome!\n #arduino #IoT #blynk”); Notice the " usingsddd " in the sketch. its just there for the randomnes but it still doesnt post. The wierd thing i got it to work for 11 days ago, but now it doesnt work anymore…
This IS the same message being sent every reboot…
…as is this… everything in between the quotations is printed… there are no changing variables present.
Ofcourse i try to change it everytime i reboot the board. It wont appear. anyway.