inputString issue

This is a discussion on inputString issue within the C Programming forums, part of the General Programming Boards category; 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 ...

  1. #1
    Registered User
    Join Date
    Apr 2012
    Location
    Canada
    Posts
    2

    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

  2. #2
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    I'm going to assume this is C++. Otherwise, someone in this thread loves function pointers.


    Quzah.
    Hope is the first step on the road to disappointment.

  3. #3
    Algorithm Dissector iMalc's Avatar
    Join Date
    Dec 2005
    Location
    New Zealand
    Posts
    6,261
    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
    My homepage
    Advice: Take only as directed - If symptoms persist, please see your debugger

    Linus Torvalds: "But it clearly is the only right way. The fact that everybody else does it some other way only means that they are wrong"

  4. #4
    Registered User
    Join Date
    Apr 2012
    Location
    Canada
    Posts
    2
    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 !

  5. #5
    Registered User
    Join Date
    Dec 2011
    Posts
    795
    > 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.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. bandwidth issue / network issue with wireless device communication
    By vlrk in forum Networking/Device Communication
    Replies: 0
    Last Post: 07-05-2010, 11:52 PM
  2. new issue
    By hiddenprophecy in forum C Programming
    Replies: 3
    Last Post: 04-15-2009, 05:59 PM
  3. PHP/IIS Issue
    By ChadJohnson in forum Tech Board
    Replies: 7
    Last Post: 09-25-2005, 11:02 AM
  4. Aim Issue
    By RoD in forum Tech Board
    Replies: 5
    Last Post: 01-17-2004, 10:28 AM
  5. pop up issue
    By RoD in forum Tech Board
    Replies: 6
    Last Post: 07-09-2003, 05:46 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21