/AWS1/IF_IOP=>DELETECONNECTION()¶
About DeleteConnection¶
Disconnects a connected MQTT client from Amazon Web Services IoT Core. When you disconnect a client, Amazon Web Services IoT Core closes the client's network connection and optionally cleans the session state.
Method Signature¶
METHODS /AWS1/IF_IOP~DELETECONNECTION
IMPORTING
!IV_CLIENTID TYPE /AWS1/IOPCLIENTID OPTIONAL
!IV_CLEANSESSION TYPE /AWS1/IOPCLEANSESSION OPTIONAL
!IV_PREVENTWILLMESSAGE TYPE /AWS1/IOPPREVENTWILLMESSAGE OPTIONAL
RAISING
/AWS1/CX_IOPFORBIDDENEXCEPTION
/AWS1/CX_IOPINTERNALFAILUREEX
/AWS1/CX_IOPINVALIDREQUESTEX
/AWS1/CX_IOPRESOURCENOTFOUNDEX
/AWS1/CX_IOPTHROTTLINGEX
/AWS1/CX_IOPCLIENTEXC
/AWS1/CX_IOPSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_clientid TYPE /AWS1/IOPCLIENTID /AWS1/IOPCLIENTID¶
The unique identifier of the MQTT client to disconnect. The client ID can't start with a dollar sign ($).
Optional arguments:¶
iv_cleansession TYPE /AWS1/IOPCLEANSESSION /AWS1/IOPCLEANSESSION¶
Specifies whether to remove the client's session state when disconnecting. Set to
TRUEto delete all session information, including subscriptions and queued messages. Set toFALSEto preserve the session state. By default, this is set toFALSE(preserves the session state).
iv_preventwillmessage TYPE /AWS1/IOPPREVENTWILLMESSAGE /AWS1/IOPPREVENTWILLMESSAGE¶
Controls if Amazon Web Services IoT Core publishes the client's Last Will and Testament (LWT) message upon disconnection. Set to
TRUEto prevent publishing the LWT message. Set toFALSEto allow publishing. By default, this is set toFALSE(allows publishing the LWT message).
Examples¶
Syntax Example¶
This is an example of the syntax for calling the method. It includes every possible argument and initializes every possible value. The data provided is not necessarily semantically accurate (for example the value "string" may be provided for something that is intended to be an instance ID, or in some cases two arguments may be mutually exclusive). The syntax shows the ABAP syntax for creating the various data structures.
lo_client->deleteconnection(
iv_cleansession = ABAP_TRUE
iv_clientid = |string|
iv_preventwillmessage = ABAP_TRUE
).