Skip to content
The Things Stack documentation home
Getting Started Concepts Cloud Enterprise Integrations API Hardware
Getting Started Concepts
Cloud Enterprise
Integrations API Hardware
Get The Things Stack

    Recent searches

      Popular pages

      • Getting Started
      • Adding Gateways
      • Adding Devices
      • Payload Formatters
      • Webhooks
      • Authentication

      No results for “”.

      • Check the spelling, or try fewer or more general words.
      • Ask the community on The Things Network Forum
      • Contact support
      ↑↓ to navigate ↵ to open Esc to close

      Integrations

      • Overview
      • Adding Applications
      • Data Formats
      • Payload Formatters
      • Webhooks
      • Storage Integration
      • Integrate with popular IoT platforms
        • akenza
        • AllThingsTalk Maker
        • AnyViz
        • AWS IoT
          • Architecture
          • Deployment Guide
          • Managing Things
          • Messages
          • Metrics
          • Update
          • Uninstall
          • Troubleshooting AWS IoT Integration
        • Azure IoT Central
        • Azure IoT Hub
        • Blockbax
        • Blynk
        • Cayenne
        • Cloud Studio
        • Daizy
        • Datacake
        • Delmation Products
        • deZem
        • evrlast
        • Homey
        • InfluxDB Cloud 2.0
        • IoT in a Box
        • IoT Wonderland
        • Kaa
        • Losant IoT Platform
        • MClimate
        • my IoT open Tech
        • Qubitro
        • TagoIO
        • Telemetry2U
        • Tellsens
        • thethings.iO
        • Thinger.io
        • ThingsBoard
        • ThingSpeak
        • TTN Mapper
        • Ubidots
        • UIB
        • UnaConnect
        • Widgelix
        • Withthegrid
        • Zoho IoT
      • Other integrations
      • Application Packages
      • Examples

      Metrics

      Updated 19 April 2023 Edit on GitHub
      Copy page
      • View as MarkdownThis page as plain text
      • Open in ChatGPTAsk questions about this page
      • Open in ClaudeAsk questions about this page

      The AWS IoT integration for The Things Stack reports device metrics to the shadow state. This is useful to retrieve information about the session and radio-frequency performance.

      In the AWS Console, open Services and go to IoT Core.

      In the menu on the left, open Manage, go to Things and click the thing of interest.

      Click the Device Shadows tab and go to lorawan. This opens the LoRaWAN® shadow state that is maintained by The Things Stack.

      Shadow State

      The shadow state contains the following fields:

      {
        "reported": {
          // Timestamp when the device was last seen (activation or uplink)
          "lastSeen": "2020-08-05T13:03:22.064376156Z",
          // Number of gateways that cover the device
          "gateways": 1,
          // Uplink frame counter of the session
          "fCntUp": 3,
          // Downlink frame counter of the session (only when using end-to-end encryption)
          "fCntDown": 0,
          // LoRaWAN DevAddr (hex)
          "devAddr": "270000B0",
          // Unique session ID
          "sessionID": "AXVvI/CZfJfog5g2zvVKfw==",
          // Best RSSI (received signal strength indicator) of the last uplink message
          "rssi": -38,
          // Best SNR (signal-to-noise ratio) of the last uplink message
          "snr": 9,
          // Timestamp when the device joined the network
          "activated": "2020-08-05T13:01:57.252799045Z"
        }
      }
      
      ← Messages Update →

      Sections

      Getting Started

      Concepts

      Cloud

      Enterprise

      Integrations

      API

      Hardware

      Sitemap

      View our Sitemap

      Contributing

      GitHub

      About Us

      The Things Industries

      Privacy Policy

      Cookie settings

      Cookie Settings

      We use cookies to enhance your experience, analyze site traffic and deliver personalized content. Read our Privacy Policy.

      Cookie categories