Skip to main content





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.

The amqpsender object provides the agent with the ability to send AMQP messages via an established session. To do so, it must create an amqptransfer object using its own createtransfer() method.

amqpsender objects are automatically closed when they are deallocated, which occurs (also automatically) when they go out of scope. To manually close an amqpsender, it must be deallocated by setting it to null.

Member Entities

The amqpsender object also has the following deprecated member methods, which should not be used in new code, but are documented here as an aid to understanding and migrating old code: