Hi David,

This is already  mentioned in the documentation under the section 'Constants', 
subsection 'ASCII constant escaping' 🙂.

Kind regards,

Rob

________________________________
Van: [email protected] <[email protected]> namens Pinhead 
<[email protected]>
Verzonden: maandag 28 november 2022 20:10
Aan: jallib <[email protected]>
Onderwerp: Re: [jallib] String issue

I suggest this to be documented in the jal language pdf as an example in the 
string section....

Just my 2c....

David
Le 28 nov. 2022, à 19:05, Rob CJ 
<[email protected]<mailto:[email protected]>> a écrit:
Hello Filip,

I had to look this up in the compiler documentation and test.

Apparently this works:
my_string[] = "AT+CSCS=\x22GSM\x22"

So " should be entered as \x22 (ASCII character for ").

Kind regards,

Rob


________________________________
Van: [email protected] <[email protected]> namens flyway38 
<[email protected]>
Verzonden: maandag 28 november 2022 17:57
Aan: jallib <[email protected]>
Onderwerp: [jallib] String issue

Hello all,

I need to compose a string (for AT commands) which include double quotes (").
How to do it without JAL seeing it as somethig else?
Example:
const byte w1[] = "AT+CSCS="GSM""

Gives this error:
[Error] (ParqTelm_V02.jal) [Line 192]  "gsm" not defined
[Error] (ParqTelm_V02.jal) [Line 192]  unexpected token: gsm

Please help :D
Thank you very much.

Kind regrads,
Filipe Santos

--
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
[email protected]<mailto:[email protected]>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jallib/f67c9b8f-e1f4-4504-ac72-86a6c48e5220n%40googlegroups.com<https://groups.google.com/d/msgid/jallib/f67c9b8f-e1f4-4504-ac72-86a6c48e5220n%40googlegroups.com?utm_medium=email&utm_source=footer>.

--
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
[email protected]<mailto:[email protected]>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jallib/GVXP195MB163717D19144D31EE2F7BDB3E6139%40GVXP195MB1637.EURP195.PROD.OUTLOOK.COM<https://groups.google.com/d/msgid/jallib/GVXP195MB163717D19144D31EE2F7BDB3E6139%40GVXP195MB1637.EURP195.PROD.OUTLOOK.COM?utm_medium=email&utm_source=footer>.

--
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
[email protected]<mailto:[email protected]>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jallib/3775c59c-bdfe-440d-96ea-720bcd44c241%40gmail.com<https://groups.google.com/d/msgid/jallib/3775c59c-bdfe-440d-96ea-720bcd44c241%40gmail.com?utm_medium=email&utm_source=footer>.

-- 
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jallib/GVXP195MB1637F9D6E10B2041565E4D49E6129%40GVXP195MB1637.EURP195.PROD.OUTLOOK.COM.

Reply via email to