|
From: | Chandana N |
Subject: | Re: [lwip-users] MQTT not working on lwip-2.0.2. Callback has an issue. |
Date: | Wed, 21 Aug 2024 07:31:07 +0000 |
Hello Eric ,
Have updated what you have suggested in the code.
Here is my output log :
Initialized the lwip.
Lwip IF is up now!
Into MQTT create connection
MQTT client created successfully.
Connection to broker initiated
MQTT Connection disconnected 256
Answering your question on why I want to use LwIP on my local system:
I am using the LwIP library on a TI processor. Facing a callback issue there as well, but that is after the system has connected to the broker.
I thought of getting the same setup running on my local system so I can understand the flow easily and debug the embedded code using this as the reference.
I only have one question:
When exactly is the mqtt_ connection_ callback () called ? It does return the status as MQTT_ CONNECT_ DISCONNECTED , but at what point in the code is it called?
When a connection has been initiated.. or ?
Regards,
Chandana
|
[Prev in Thread] | Current Thread | [Next in Thread] |