:doc:`IoTWireless <../../iotwireless>` / Client / list_queued_messages

********************
list_queued_messages
********************



.. py:method:: IoTWireless.Client.list_queued_messages(**kwargs)

  

  List queued messages in the downlink queue.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/ListQueuedMessages>`_  


  **Request Syntax**
  ::

    response = client.list_queued_messages(
        Id='string',
        NextToken='string',
        MaxResults=123,
        WirelessDeviceType='Sidewalk'|'LoRaWAN'
    )
    
  :type Id: string
  :param Id: **[REQUIRED]** 

    The ID of a given wireless device which the downlink message packets are being sent.

    

  
  :type NextToken: string
  :param NextToken: 

    To retrieve the next set of results, the ``nextToken`` value from a previous response; otherwise **null** to receive the first set of results.

    

  
  :type MaxResults: integer
  :param MaxResults: 

    The maximum number of results to return in this operation.

    

  
  :type WirelessDeviceType: string
  :param WirelessDeviceType: 

    The wireless device type, whic can be either Sidewalk or LoRaWAN.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'NextToken': 'string',
          'DownlinkQueueMessagesList': [
              {
                  'MessageId': 'string',
                  'TransmitMode': 123,
                  'ReceivedAt': 'string',
                  'LoRaWAN': {
                      'FPort': 123,
                      'ParticipatingGateways': {
                          'DownlinkMode': 'SEQUENTIAL'|'CONCURRENT'|'USING_UPLINK_GATEWAY',
                          'GatewayList': [
                              {
                                  'GatewayId': 'string',
                                  'DownlinkFrequency': 123
                              },
                          ],
                          'TransmissionInterval': 123
                      }
                  }
              },
          ]
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **NextToken** *(string) --* 

        To retrieve the next set of results, the ``nextToken`` value from a previous response; otherwise **null** to receive the first set of results.

        
      

      - **DownlinkQueueMessagesList** *(list) --* 

        The messages in the downlink queue.

        
        

        - *(dict) --* 

          The message in the downlink queue.

          
          

          - **MessageId** *(string) --* 

            The message ID assigned by IoT Wireless to each downlink message, which helps identify the message.

            
          

          - **TransmitMode** *(integer) --* 

            The transmit mode to use for sending data to the wireless device. This can be ``0`` for UM (unacknowledge mode) or ``1`` for AM (acknowledge mode).

            
          

          - **ReceivedAt** *(string) --* 

            The time at which Iot Wireless received the downlink message.

            
          

          - **LoRaWAN** *(dict) --* 

            LoRaWAN router info.

            
            

            - **FPort** *(integer) --* 

              The Fport value.

              
            

            - **ParticipatingGateways** *(dict) --* 

              Choose the gateways that you want to use for the downlink data traffic when the wireless device is running in class B or class C mode.

              
              

              - **DownlinkMode** *(string) --* 

                Indicates whether to send the downlink message in sequential mode or concurrent mode, or to use only the chosen gateways from the previous uplink message transmission.

                
              

              - **GatewayList** *(list) --* 

                The list of gateways that you want to use for sending the downlink data traffic.

                
                

                - *(dict) --* 

                  Gateway list item object that specifies the frequency and list of gateways for which the downlink message should be sent.

                  
                  

                  - **GatewayId** *(string) --* 

                    The ID of the wireless gateways that you want to add to the list of gateways when sending downlink messages.

                    
                  

                  - **DownlinkFrequency** *(integer) --* 

                    The frequency to use for the gateways when sending a downlink message to the wireless device.

                    
              
            
              

              - **TransmissionInterval** *(integer) --* 

                The duration of time for which AWS IoT Core for LoRaWAN will wait before transmitting the payload to the next gateway.

                
          
        
      
    
  
  **Exceptions**
  
  *   :py:class:`IoTWireless.Client.exceptions.ValidationException`

  
  *   :py:class:`IoTWireless.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`IoTWireless.Client.exceptions.InternalServerException`

  
  *   :py:class:`IoTWireless.Client.exceptions.ThrottlingException`

  
  *   :py:class:`IoTWireless.Client.exceptions.AccessDeniedException`

  