Yandex Cloud
  • Services
  • Solutions
  • Why Yandex Cloud
  • Blog
  • Pricing
  • Documentation
  • Contact us
Get started
Language / Region
Yandex project
© 2023 Yandex.Cloud LLC
Yandex IoT Core
  • Getting started
  • Step-by-step instructions
    • All instructions
    • Sending messages
    • Subscribing a device or registry to receive messages
    • Viewing the connection log
    • Creating a trigger for a topic
    • Managing registries
      • Getting information about registries
      • Creating a registry
      • Updating a registry
      • Deleting a registry
    • Managing devices
      • Managing topic aliases
        • Creating an alias
        • Getting a list of aliases
        • Updating an alias
        • Deleting an alias
      • Getting information about devices
      • Creating a device
      • Updating a device
      • Deleting a device
    • Managing brokers
      • Getting information about a broker
      • Creating a broker
      • Updating a broker
      • Deleting a broker
    • Managing certificates
      • Create a certificate
      • Managing registry certificates
      • Managing device certificates
      • Managing broker certificates
    • Managing passwords
      • Managing registry passwords
      • Managing device passwords
      • Managing broker passwords
  • Concepts
    • Authorization
    • Relationship between service resources
    • MQTT server connection parameters
    • Sending messages to an MQTT server via gRPC
    • Topic
      • Overview
      • Device topics
      • Registry topics
      • Subtopic
      • Using topics
    • Backups
    • Quotas and limits
  • Practical guidelines
    • All tutorials
    • Working with Mosquitto
      • Sending messages
      • Subscribing a device or registry to receive messages
    • Working with Yandex IoT Core from an Android device in Java
    • Working with Yandex IoT Core in C#
    • Working with Yandex IoT Core in Java
    • Writing data from a device to Managed Service for PostgreSQL
  • Access management
  • Pricing policy
  • Devices API reference
    • Authentication in the API
    • gRPC
      • Overview
      • DeviceDataService
      • DeviceService
      • RegistryDataService
      • RegistryService
      • OperationService
    • REST
      • Overview
      • DeviceData
        • Overview
        • publish
      • Device
        • Overview
        • addCertificate
        • addPassword
        • create
        • delete
        • deleteCertificate
        • deletePassword
        • get
        • getByName
        • list
        • listCertificates
        • listOperations
        • listPasswords
        • update
      • RegistryData
        • Overview
        • publish
      • Registry
        • Overview
        • addCertificate
        • addPassword
        • create
        • delete
        • deleteCertificate
        • deletePassword
        • get
        • getByName
        • list
        • listCertificates
        • listDeviceTopicAliases
        • listOperations
        • listPasswords
        • update
  • Broker API reference
    • Authentication in the API
    • gRPC
      • Overview
      • BrokerDataService
      • BrokerService
      • OperationService
    • REST
      • Overview
      • BrokerData
        • Overview
        • publish
      • Broker
        • Overview
        • addCertificate
        • addPassword
        • create
        • delete
        • deleteCertificate
        • deletePassword
        • get
        • list
        • listCertificates
        • listOperations
        • listPasswords
        • update
  • Questions and answers
  1. Concepts
  2. Topic
  3. Device topics

Device topics

Written by
Yandex Cloud
  • Monitoring topic
    • Example of monitoring data

Warning

Registry and device topics are not interconnected. If a device sends data to the device topic for telemetry data, you can only receive it by subscribing to this topic. The same is true for registry topics.

Device topics available in the service:

  • $devices/<device ID>/events — A topic for sending telemetry data.

  • $devices/<device ID>/state — A permanent topic for sending telemetry data.

    The device can write data to these topics and the registry can read the data from them. Registries subscribed to these topics will know which device sent the data, because the topic contains the device ID.

  • $devices/<device ID>/commands — A topic for receiving commands.

  • $devices/<device ID>/config — A permanent topic for receiving commands.

    The registry can write data to these topics and the device can read data from them. The registry sends commands for a specific device to these topics.

  • $monitoring/<device ID>/json — A topic for receiving monitoring data in JSON format.

    The device automatically writes data to this topic and other devices and the registry can read the data from it. The device and registry that are subscribed to this topic will receive up-to-date monitoring data for the device whose ID is specified in the topic.

Monitoring topic

The device and registry that are subscribed to the monitoring topic will receive up-to-date monitoring data for the device whose ID is specified in the topic.

  • last_auth_time — Time of the last authentication on the device.
  • last_auth_ip — IP address the last authentication was made from.
  • last_pub_activity_time — Time when the device last sent a message.
  • last_sub_activity_time — Time of the last subscription to messages.
  • last_online_time — Time of the last activity of the device.
  • registry_id — ID of the registry where the device is located.
  • device_id — Device ID.

The time is Coordinated Universal Time, UTC. New messages are sent to registries or devices that are subscribed to the topic every time the device is accessed over MQTT. Service quality level — At most once. If the message failed to arrive within the expected time period, we recommend waiting about two minutes before reacting.

Example of monitoring data

{
	"last_auth_time": "2021-03-24T09:55:21.7570928Z",
	"last_auth_ip": "199.21.99.45",
	"last_pub_activity_time": "2021-03-24T09:55:21.858181573Z",
	"last_online_time": "2021-03-24T09:55:21.858181573Z",
	"registry_id": "areljb44npjoaog*****",
	"device_id": "are3tkujvebfo3s*****"
}

Was the article helpful?

Language / Region
Yandex project
© 2023 Yandex.Cloud LLC
In this article:
  • Monitoring topic
  • Example of monitoring data