-
inputString issue
I have
Code:
char msg[] = (echoOut,inputString.length())+1); //char
or
Serial.begin(9600);
inputString.reserve(40); //(200
char msg[] = "(inputString)"; //char
Serial.println("connecting ...");
if (twitter.post(msg)) {
neither works.. of course the "(inputString)" simply sends (inputString) to twitter.
I need the serial data from inputString to (twitter.post(????)
please help
-
I'm going to assume this is C++. Otherwise, someone in this thread loves function pointers.
Quzah.
-
I would assume someone was, for the second time today, foolish enough to post java code in the c forum.
(As evidenced by println)
Please read How To Ask Questions The Smart Way
-
This intended for Arduino (C++)
I need to use the serial string
[code]//from SerialEvent
String inputString = ""; // a string to hold incoming data
boolean stringComplete = false; // whether the string is complete[code]
in a char array to: (twitter.post(msg)) {
There must be an easier way?
Thanks !
-
> There must be an easier way?
For starters, posting in the right place. C++ code for Arduino obviously doesn't belong in a C board.
Also, even if you did post in the right place, I would have no idea how to help you. You haven't asked a coherent question or described what was happening.