Pages: [1]   Go Down
Author Topic: Twitter library Error 403 same tweet I need a RANDOM char type variable  (Read 1333 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 6
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi this is my variable that contains the tweet message, I think it cant be changed It needs to be CHAR type..


char msg () = ¨ tweet message¨;


I have an idea ... Can I have a mix variable that contains a counter or RANDOM value and a little message ????

char msg () = RANDOMvariableCOUNTER + ¨ tweet message¨;

Please help me!!!!!
Logged

Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 168
Posts: 12428
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

crossposting is not appreciated, please remove duplicate messages ...

 Development / Other Software Development / Twitter library Error 403 same tweet I need a RANDOM char type variable
 Topics / Device Hacking / Twitter library Error 403 same tweet I need a RANDOM char type variable
 Using Arduino / Programming Questions / Twitter library Error 403 same tweet I need a RANDOM char type variable
 Using Arduino / Networking, Protocols, and Devices / Twitter library Error 403 same tweet I need a RANDOM char type variable
Topics / Home Automation and Networked Objects / Twitter library Error 403 same tweet I need a RANDOM char type variable


I think the one in this thread is in the right place so you keep the discussion here.

Back to your question:

Quote
I have an idea ... Can I have a mix variable that contains a counter or RANDOM value and a little message ????

char msg () = RANDOMvariableCOUNTER + ¨ tweet message¨;

yes this is very well possible.\,
Code:
int x = random(1000);
char tweet[162];
sprintf(tweet, "ID%d: the rest of the message", x);
« Last Edit: September 27, 2011, 12:07:13 am by robtillaart » Logged

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Offline Offline
Newbie
*
Karma: 0
Posts: 6
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

yes but the complete message need to be inside or contained inside the variable " char msg [] ", please help me! With this I will finish the project.
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 548
Posts: 46026
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
but the complete message need to be inside or contained inside the variable " char msg [] "
As opposed to being in the variable tweet? Why?

If that is a real requirement, copy the message there.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 6
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Ithet info needs to be in that variable to be tweeted.
Logged

Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 168
Posts: 12428
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset


OK, after a serious redesign smiley

Code:
int x = random(1000);
char msg[162];
sprintf(msg, "ID%d: tweet message", x);
Logged

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 548
Posts: 46026
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
OK, after a serious redesign
Hilarious.
Logged

Pages: [1]   Go Up
Jump to: