* Receiving raw SMS through Ofono "incoming-message" callback
@ 2015-03-02 11:45 Frederik Lotter
2015-03-02 15:18 ` Denis Kenzior
0 siblings, 1 reply; 2+ messages in thread
From: Frederik Lotter @ 2015-03-02 11:45 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 465 bytes --]
Hi,
It looks like the SMS receive API attempts to represent the incoming SMS as
an array of characters inside the callback function.
IncomingMessage(string message, dict info)
I am expecting a raw payload of server data via SMS. I cannot see how this
will work in the current implementation since the raw data may well be full
of zeros which will act as a string terminator.
Any ideas?
Kind Regards,
Frederik Lotter
MiX Telematics South Africa
[-- Attachment #2: attachment.html --]
[-- Type: text/html, Size: 592 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Receiving raw SMS through Ofono "incoming-message" callback
2015-03-02 11:45 Receiving raw SMS through Ofono "incoming-message" callback Frederik Lotter
@ 2015-03-02 15:18 ` Denis Kenzior
0 siblings, 0 replies; 2+ messages in thread
From: Denis Kenzior @ 2015-03-02 15:18 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 786 bytes --]
Hi Frederik,
On 03/02/2015 05:45 AM, Frederik Lotter wrote:
> Hi,
>
> It looks like the SMS receive API attempts to represent the incoming SMS
> as an array of characters inside the callback function.
>
> IncomingMessage(string message, dict info)
This API is for 'text' messages. It will not handle non-utf8 formatted
strings and will ignore any IEs that are not pertinent to decoding text
messages.
>
> I am expecting a raw payload of server data via SMS. I cannot see how
> this will work in the current implementation since the raw data may well
> be full of zeros which will act as a string terminator.
>
> Any ideas?
>
You can write a plugin for this. For example, see
plugins/smart-messaging.c and plugins/push-notification.c
Regards,
-Denis
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-03-02 15:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-02 11:45 Receiving raw SMS through Ofono "incoming-message" callback Frederik Lotter
2015-03-02 15:18 ` Denis Kenzior
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.