Go Down

Topic: Combining string and int in to Twitter message (Read 4398 times) previous topic - next topic

PaulS

Quote
Would this be because I've been fiddling with twitter too much and gone over my rate limit?

Beats me. I use my own server for posting to. I've never been a fan of twitter.

However:
http://www.w3.org/Protocols/HTTP/HTRESP.html
Quote
Forbidden 403

The request is for something forbidden. Authorization will not help.


I'd check that twitter token to make sure that it is right.
The art of getting good answers lies in asking good questions.

Ant_2000

yep, the token's ok. When I go back to using my older code that only includes the single message and counter:

Code: [Select]
      snprintf (msg, 64, "my message %d", buttonPushCounter);

instead of:

Code: [Select]
     int msgNum = random(NUMMSG);
     char msgBfr[64]; // Sized to hold string to retrieve
     strcpy_P(msgBfr, (char*)pgm_read_word(&(messages[msgNum])));
     snprintf (msg, 64, "%s, %d", msgBfr, buttonPushCounter);


I don't get the error message... Ah well, I'll try to work this out.

Thanks again for you help.

Ah well...

PaulS

Quote
Ah well, I'll try to work this out.

User Serial.print() and Serial.println() to print the random number, the message retrieved, the message to be sent, etc.

Nothing is obviously wrong, but I like to know (at least once) what is really going on.
The art of getting good answers lies in asking good questions.

Go Up