Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[paho-dev] AsyncClient: How to get connection failure reason
  • From: "Kumar, Pankaj" <pankaj_kumar2@xxxxxxxxxx>
  • Date: Wed, 28 Jul 2021 06:21:01 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=baxter.com; dmarc=pass action=none header.from=baxter.com; dkim=pass header.d=baxter.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=dhF7haCKdra0Dk5kXVrU1kJxquf8vhpYZ/BaPlIGVK0=; b=BYp5DfVJLK1cciOwvcPKL9dX8rf19hFkrUUXx8Og1h7nrHo2dhs9ksQI5Egbd5M7rIauD0gNBHoFyWq9I9BhGve8OjLLARepcUgON0S+gfVXTSl9NflWQuBubZL1Oka8uPSYKIgNeHCgSEZJ4nnAn1XYIDiVDTvgjAC/mFngHdSb1k9/S2zHDEikkNpur3po4W60uSddwS2DpTVL3V+w3kGDf2aOyUPuLm1J/o1jk6RxmsakeoNWx2wvgJ05p6iEViCJsG1kavFh8H8FYHHuzzFjxTS+rFZoMnUQzV57Nu9wrCEnFOFmGbbabsQjFzrTxBLLqTlb++9Pn5aa4ypEww==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=S+1u/svY8+BncwQSFljYaUtSbTwcQOtZXBllgsu2y16Ltym1lKKnNHGVYH617TQudtUIG2+UbS21PDhTG4rWn4t9YftNyz0Sc3402MO0JHMpF+xZm8/WyH59DAS6ot+NjNl5A4HI2Nema2HOY6uQntflu2+yjBxdFGm6qDloLbPaMGF7UlqNFHP22nUSMET9sHt0CU1VjUG9zrh3uiyDEe5iYRafnfr4zh6oYbq4KseLPQW2DUIoIbsTDfGxk5Vcz3NfAcbRK8k3/WBfydbZsQqS36pPk4zRkT1NNqxWWioIRMpxMcsO6DnOAyTver4mstD82l+2F2QQTy7X+fHEYA==
  • Delivered-to: paho-dev@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/paho-dev/>
  • List-help: <mailto:paho-dev-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/paho-dev>, <mailto:paho-dev-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/paho-dev>, <mailto:paho-dev-request@eclipse.org?subject=unsubscribe>
  • Thread-index: AdeDdzI2kDmbZTU2Tci0JsLdYwMWCA==
  • Thread-topic: AsyncClient: How to get connection failure reason

Hello Dev,

 

We are using async_client of ‘paho.mqtt.cpp’ library.

 

After calling connect() API if connection doesn’t go through, is there a way to know reason of failure ?

 

There could be multiple reasons why connection may not go through 1) Remote IP not reachable 2) TLS certificate mismatch etc.

I am looking for an API/callback which can tell what went wrong after calling connect API on async_client.  

 

Regards

Pankaj


Back to the top