String with quotion mark in Full Duplex Serial

Got stuck.. no problem in Parallax Serial Terminal but how do I send a string like this in FDS:

AT+CGDCONT=1,"IP","NetProvider"


Comments

  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 22,652
    edited 2020-06-19 - 19:55:09
    fds.str(string("AT+CGDCONT=1,",34,"IP",34,",",34,"NetProvider",34))

    34 is the ASCII decimal value for a double quote.

    -Phil
  • msrobotsmsrobots Posts: 3,153
    edited 2020-06-19 - 20:30:59
    in spin that would be

    fds.str(STRING("AT+CGDCONT=1,",34,"IP",34,",", 34,"NetProvider",34))

    my guess, not tested.

    Mike
  • Awesome!

    Works perfect!

    Thank you so much!
  • msrobotsmsrobots Posts: 3,153
    edited 2020-06-19 - 20:34:34
    actually I had to fix the post, you need a final ,34 at the end of the string command

    and @Phil Pilgrim (PhiPi) beat me by minutes...

    Mike
  • msrobots wrote: »
    actually I had to fix the post, you need a final ,34 at the end of the string command

    and @Phil Pilgrim (PhiPi) beat me by minutes...

    Mike

    No problem, thanks to both of you. It was just before I started to modify the FDS with a PUB Char.
    And the solution was just seconds away thanks to this powerful forum.
Sign In or Register to comment.