Get the last SMS from mm_modem_messaging_list
Andrea Schäfer
andrea.schaefer at puri.sm
Wed May 8 19:22:50 UTC 2019
Hi Aleksander,
I have build the MR102, with your fix the problem is solved :)
Thanks a lot for looking into this so swiftly.
Cheers,
Andrea
On 5/8/19 8:27 PM, Aleksander Morgado wrote:
> Hey,
>
>>
>> I have some trouble with pulling a received SMS from the ModemManager
>> messaging-list. Roughly described I'm doing things like so:
>>
>> gdbus_sms = MM_GDBUS_MODEM_MESSAGING(mm_sms->modem_messaging);
>> g_signal_connect (gdbus_sms, "added",
>> G_CALLBACK (cb_dbus_signal_sms_added),
>> NULL);
>>
>> In 'cb_dbus_signal_sms_added' I call 'mm_modem_messaging_list', and in
>> its '(GAsyncReadyCallback)list_ready_cb' I iterate through the GList
>> that I get with 'mm_modem_messaging_list_finish'. But the last received
>> SMS isn't in the list then. The SMS is included in the list when the
>> next SMS is received, so the list content always lags one behind in this
>> phase.
>>
>> Do I miss a step in the sequence, or could it be a timing issue?
>>
>
> Any chance you can retry with the fix in the following MR?
> https://gitlab.freedesktop.org/mobile-broadband/ModemManager/merge_requests/102
>
More information about the ModemManager-devel
mailing list