lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] Can you connect a MQTT client directly from a PPPoS sta


From: Devanand Biradar
Subject: Re: [lwip-users] Can you connect a MQTT client directly from a PPPoS status callback?
Date: Thu, 16 May 2019 20:41:08 +0530

I have connected to mosquito cloud using Lwip via MQTT.
Using PPPOS with GSM module.



On Thu, 16 May 2019, 19:55 Freddie Chopin, <address@hidden> wrote:
Hi!

I'm working on an open-source demo project in which there is a MQTT
client talking via PPPoS to a GSM modem. The project also has a RTOS,
so I have threads and synchronization objects.

I'm wondering whether I could connect a MQTT client to a broker
directly from a PPPoS status callback? The scenario I have in mind is
that when PPPoS connection is established then I would like to
immediately connect to the MQTT broker. Is that a viable idea, or
should I avoid calling such high-level functions as
mqtt_client_connect() from such low-level places as status callbacks of
netifs? The problem I'm seeing is that mqtt_client_connect() requires
you to hold a TCP/IP core lock, which is already held when the PPPoS
callback is executed. I can make this lock recursive, not a problem (at
least for me, but I doubt lwIP would care about such a change), but
then I'm wondering whether there's a chance for a deadlock or data
corruption in such a scenario...

Thanks in advance for any input!

Regards,
FCh


_______________________________________________
lwip-users mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/lwip-users

reply via email to

[Prev in Thread] Current Thread [Next in Thread]