question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Getting connection status

See original GitHub issue

How 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:closed
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
github-actions[bot]commented, May 13, 2020

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.

0reactions
fengsongAWScommented, May 7, 2018

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?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found