Get the last SMS from mm_modem_messaging_list
Andrea Schäfer
andrea.schaefer at puri.sm
Wed May 8 19:27:00 UTC 2019
Hi Enrico,
Thanks for your reply. I hope I will be able to finish my code by the
end of this week. I will send a link to the repo in the mailing-list
then, so that you take a look at the code.
Cheers,
Andrea
On 5/8/19 7:25 PM, Enrico Mioso wrote:
> Hello Andrea,
> hello all!!
> Andrea, can you explain me how you arrived to that code? I am curioust
> to learn!! And understand. So I would appreciate some explanations.
>
> I did the same this way:
> ...
> mmobject = agh_mm_get_mmobject(mstate, modem);
> ...
> messaging = mm_object_get_modem_messaging(mmobject);
> ...
>
> signal_id = g_signal_connect(messaging, "added",
> G_CALLBACK(agh_mm_modem_sms_added), mstate);
>
> ...
> but then I faced your same issue.
> BTW, due to the "marshaller" used in this case, I am not able to pass
> user data (e.g.: mstate).
> Is there a way around this?
> May we change the marshaller used in MM?
>
> thank you all!!
>
> Enrico
More information about the ModemManager-devel
mailing list