Hi prasanth R,
Today, I test it again on my side, this is my test result:
You can find, it can publish and receive the data, but just sometimes, it disconnected:
You can test it again, whether you can receive the data and publish the data again?
Initializing PHY...
************************************************
MQTT client example
************************************************
Getting IP address from DHCP...
IPv4 Address : 192.168.43.200
IPv4 Subnet mask : 255.255.255.0
IPv4 Gateway : 192.168.43.1
Resolving "test.mosquitto.org"...
Connecting to MQTT broker at 5.196.95.208...
MQTT client "lwip_client-123" connected.
Subscribing to the topic "lwip_topic/#" with QoS 0...
Subscribing to the topic "lwip_other/#" with QoS 1...
Going to publish to the topic "lwip_topic/100"...
Subscribed to the topic "lwip_topic/#".
Received 4 bytes from the topic "lwip_topic/100": "8888"
Subscribed to the topic "lwip_other/#".
Received 4 bytes from the topic "lwip_other/10": "3333"
Published to the topic "lwip_topic/100".
Received 18 bytes from the topic "lwip_topic/100": "message from board"
MQTT client "lwip_client-123" not connected.
Connecting to MQTT broker at 5.196.95.208...
MQTT client "lwip_client-123" connected.
Subscribing to the topic "lwip_topic/#" with QoS 0...
Subscribing to the topic "lwip_other/#" with QoS 1...
Subscribed to the topic "lwip_topic/#".
Received 4 bytes from the topic "lwip_topic/100": "8888"
Subscribed to the topic "lwip_other/#".
Received 4 bytes from the topic "lwip_other/10": "3333"
Going to publish to the topic "lwip_topic/100"...
MQTT client "lwip_client-123" not connected.
Connecting to MQTT broker at 5.196.95.208...
MQTT client "lwip_client-123" connected.
Subscribing to the topic "lwip_topic/#" with QoS 0...
Subscribing to the topic "lwip_other/#" with QoS 1...
Subscribed to the topic "lwip_topic/#".
Received 4 bytes from the topic "lwip_topic/100": "8888"
Subscribed to the topic "lwip_other/#".
Received 4 bytes from the topic "lwip_other/10": "3333"
MQTT client "lwip_client-123" not connected.
Connecting to MQTT broker at 5.196.95.208...
MQTT client "lwip_client-123" connected.
Subscribing to the topic "lwip_topic/#" with QoS 0...
Subscribing to the topic "lwip_other/#" with QoS 1...
Subscribed to the topic "lwip_topic/#".
Received 4 bytes from the topic "lwip_topic/100": "8888"
Subscribed to the topic "lwip_other/#".
Received 4 bytes from the topic "lwip_other/10": "3333"
Going to publish to the topic "lwip_topic/100"...
Published to the topic "lwip_topic/100".
Received 18 bytes from the topic "lwip_topic/100": "message from board"
MQTT client "lwip_client-123" not connected.
Connecting to MQTT broker at 5.196.95.208...
MQTT client "lwip_client-123" connected.
Subscribing to the topic "lwip_topic/#" with QoS 0...
Subscribing to the topic "lwip_other/#" with QoS 1...
Subscribed to the topic "lwip_topic/#".
Received 4 bytes from the topic "lwip_topic/100": "8888"
Subscribed to the topic "lwip_other/#".
Received 4 bytes from the topic "lwip_other/10": "3333"
Going to publish to the topic "lwip_topic/100"...
Published to the topic "lwip_topic/100".
Received 18 bytes from the topic "lwip_topic/100": "message from board"
Going to publish to the topic "lwip_topic/100"...
MQTT client "lwip_client-123" not connected.
Connecting to MQTT broker at 5.196.95.208...
MQTT client "lwip_client-123" connected.
Subscribing to the topic "lwip_topic/#" with QoS 0...
Subscribing to the topic "lwip_other/#" with QoS 1...
Subscribed to the topic "lwip_topic/#".
Received 4 bytes from the topic "lwip_topic/100": "8888"
Subscribed to the topic "lwip_other/#".
Received 4 bytes from the topic "lwip_other/10": "3333"
MQTT client "lwip_client-123" not connected.
Connecting to MQTT broker at 5.196.95.208...
MQTT client "lwip_client-123" connected.
Subscribing to the topic "lwip_topic/#" with QoS 0...
Subscribing to the topic "lwip_other/#" with QoS 1...
MQTT client "lwip_client-123" not connected.
Connecting to MQTT broker at 5.196.95.208...
MQTT client "lwip_client-123" connected.
Subscribing to the topic "lwip_topic/#" with QoS 0...
Subscribing to the topic "lwip_other/#" with QoS 1...
Subscribed to the topic "lwip_topic/#".
Received 4 bytes from the topic "lwip_topic/100": "8888"
Subscribed to the topic "lwip_other/#".
Received 4 bytes from the topic "lwip_other/10": "3333"
MQTT client "lwip_client-123" not connected.
Connecting to MQTT broker at 5.196.95.208...
MQTT client "lwip_client-123" connected.
Subscribing to the topic "lwip_topic/#" with QoS 0...
Subscribing to the topic "lwip_other/#" with QoS 1...
MQTT client "lwip_client-123" not connected.
Connecting to MQTT broker at 5.196.95.208...
MQTT client "lwip_client-123" connected.
Subscribing to the topic "lwip_topic/#" with QoS 0...
Subscribing to the topic "lwip_other/#" with QoS 1...
Subscribed to the topic "lwip_topic/#".
Received 4 bytes from the topic "lwip_topic/100": "8888"
Subscribed to the topic "lwip_other/#".
Received 4 bytes from the topic "lwip_other/10": "3333"
MQTT client "lwip_client-123" not connected.
About this problem, I also have talked it with our SDK testing team, they have meet the similar problem in the previous time, but after talking to the project owner, the owner didn't produce the problem.
Now, our testing team help us to test the newest SDK again, they also reproduce the disconnect problem, they already help tol report the bug to the SDK R&D department again.
Anyway, if I get any valuable information from our internal side, I will let you know.
From my today's test result, at least, the code can do the publish and subscribe function, when I use the MQTT to publish the data, the RT board also can receive it. So, you can test it again. From our original post, it seems, you can receive nothing, that really a problem, and different with my latest result.
Have a great day,
Kerry
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
---------------------------------------------------------------------------