How to send the chars single & double quote in SMS message using mmcli?

Guido Brugnara gdo at leader.it
Mon Aug 13 12:34:27 UTC 2018


I must to send an SMS message with the characters "'" and "\"" in it.

I know only the command line command like:

   MESSAGE="My test:\"'"
   mmcli -m 0 --messaging-create-sms="text='$MESSAGE',number='+1234567890'"
     error: cannot parse properties string: 'Unexpected content (',number='+1234567890') after value'

how should I encode $MESSAGE to be correctly parsed by mmcli?

I have look at source code at line 1280:

   https://github.com/linux-mobile-broadband/ModemManager/blob/master/libmm-glib/mm-common-helpers.c)

and I think it is not possible. It's true?
Do you know a work-around?

regards
Guido Brugnara



More information about the ModemManager-devel mailing list