Thread: inputString issue

  1. #1
    Registered User
    Join Date
    Apr 2012

    inputString issue

    I have
    char msg[] = (echoOut,inputString.length())+1);  //char
      inputString.reserve(40); //(200
    char msg[] = "(inputString)";  //char
      Serial.println("connecting ...");
      if ( {
    neither works.. of course the "(inputString)" simply sends (inputString) to twitter.
    I need the serial data from inputString to (

    please help

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

    Hope is the first step on the road to disappointment.

  3. #3
    Algorithm Dissector iMalc's Avatar
    Join Date
    Dec 2005
    New Zealand
    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
    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: ( {
    There must be an easier way?

    Thanks !

  5. #5
    Registered User
    Join Date
    Dec 2011
    > 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
Website Security Test