Skip to main content


Indicates whether the target connection is open or closed




Boolean — true if the amqpconnection is open, otherwise false


Important Note Agent AMQP functionality is now deprecated and will shortly become unsupported. Any attempt to interact with imp API amqp objects and methods on unregistered development devices or on production devices will generate a runtime error.

If you are using or intend to use Azure IoTHub, we recommend you make use of MQTT instead of AMQP. Please see our Azure IoT Hub integration for more information.

This method can be used to check whether the connection that the target amqpconnection object is maintaining is open or closed. If the connection is open, the call returns true. The call can be used check on the state of the connection before executing code that depends on the connection being open and will fail if it is not.