New Homepage Forums Social Media Shields How to tweet the same message twice?

This topic contains 5 replies, has 3 voices, and was last updated by avatar Eslam Ali 4 years, 1 month ago. This post has been viewed 1402 times

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #8015
    avatarhydrotruth
    Participant

    Hi to all,

    Trying to use the Twitter shield to tweet a direct  message to another account.

    Unfortunately you can’t tweet the same message more than once!

    Is there a way around this? Perhaps adding a time stamp? What that solve the problem?

    #8047
    avatarEslam Ali
    Participant

    Hi hydrotruth,

    Unfortunately Twitter policy refuses to tweet two similar tweets sequential even after a certain time “delay” but there’s a work around for this issue is by inserting a certain random character in the tweet each time you will tweet  it 😉 .

    Best Of Luck 🙂

     

    #8069
    avatarhydrotruth
    Participant

    Eslam, I get you! But how can we do that with adding something random with the code?

    #8070
    avatarEslam Ali
    Participant

    Yeah Here’s an example 😉 .

     

    #11298
    ArduinoGardening
    Participant

    Hi,

    Is it possible to append the time to the tweet? I have been experimenting with this without success. I Suspect that the issue lies with converting the hours ans minutes into a string. Please see my code below and correct me if I am wrong.

    #11300
    avatarEslam Ali
    Participant

    Hi Arduino Gardening,

    So the way of using the String object to manipulate the string is smart, But misses the concatenation part of the string. Where you can append the time after the tweet.

    Let me explain it a little outside the sketch:
    So, you have a String object that you need to send. After you get the time all you have to do is just place the (+) sign to append them. so it comes something like this

    String myString = “This is 1Sheeld” + String(Clock.getHours()) + String(Clock.getMinutes()) + String(Clock.getSeconds());

    So by this line you will be able to append the time to your tweet.

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.