Getting connection status
See original GitHub issueHow do I check if the client is connected or not?
From the Device class example, I understand that the Device is an instance returned by mqtt.Client()
mqtt.js has a connected flag https://github.com/mqttjs/MQTT.js#connected
However, device.connected gives me undefined
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
get-connection-status — AWS CLI 1.27.32 Command Reference
Description. Retrieves the Session Manager connection status for a managed node to determine whether it is running and ready to receive Session Manager...
Read more >How To Check Network Connection - YouTube
Having trouble to check your Network connection status ? In this video, we will learn to quickly check the network connection.1.
Read more >Check the Network Connection Status of Wireless Devices
Smartphones show both cellular and Wi-Fi connection status in the Notification bar at the top of the screen. On the right side of...
Read more >get-connection-status — AWS CLI 2.9.10 Command Reference
Retrieves the Session Manager connection status for a managed node to determine whether it is running and ready to receive Session Manager connections....
Read more >How to check Active Network Connections in Windows?
Step 1: In the search tab, search for the control panel and click on view network status and tasks below the Network and...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Greetings! Sorry to say but this is a very old issue that is probably not getting as much attention as it deservers. We encourage you to check if this is still an issue in the latest release and if you find that this is still a problem, please feel free to open a new one.
why do you want to put timeout in a publish call? Are you using qos 1? Which callback is never triggered? Connect callback or publish callback?