MQTT Telemetry Cases

MQTT Telemetry Cases

Zoho IoT supports device communication using the MQTT protocol. It provides dedicated MQTT topics for specific communication purposes to ensure structured and reliable data exchange between devices and the Zoho IoT application.

The topic structure used in Zoho IoT MQTT configurations is:

/device/<device_id>/<publish_subscribe_topic>

For accurate configuration, it is strongly recommended to use the topic exactly as shown on the Connection Details page within the Zoho IoT application. This prevents mismatches in topic naming and ensures proper message routing.

Info
You can obtain the topics for a device from its Connection Details page.

Zoho IoT defines different MQTT topics based on the type of communication required. These topics are broadly categorised into:

Publish Topics  

Publish topics are used when a device needs to send data to the Zoho IoT application. Any device generated payload, such as telemetry data, alerts, or status information, must be transmitted through the appropriate publish topic.

Zoho IoT provides three types of publish topics, each designed for a specific use case:

Telemetry  

The telemetry topic is used to send all periodic data payloads collected by the device to the application. The payload must be in JSON format. Datapoints in Zoho IoT parse information from the payloads received through this topic and store it.

For example, if a device monitors electrical consumption, it may measure parameters such as Current, Voltage, Load, and Power Factor. These parameters should be structured as a JSON payload containing the parsing key and the corresponding measured values. The payload must then be published to the telemetry topic for processing within the Zoho IoT application.

Structure of the telemetry publish topic:

/device/<device_id>/telemetry
Example for telemetry publish topic:


Events  

The events topic is used to transmit event related notifications such as alarms, warnings, or state changes by the edge device.

For example, if a gateway device is configured with a rule to trigger an alarm when the power level falls below a defined threshold, the device should send the alarm payload through the events topic. This enables the application to process and display event notifications in real time.

Structure of the telemetry publish topic:

/device/<device_id>/events
Example of the event publish topic:


NotesNote: Messages published to the events topic are processed by the application in real time. Data sent through the events topic is not stored in the application and is intended only for immediate processing.

Command Acknowledgement

When a command is executed from the Zoho IoT application, a command payload is sent to the device. The device must send an acknowledgement payload back to the application on receipt of the command payload. The edge device should send the acknowledgement payload through the Command Acknowledgement topic.

For example, consider a gateway device that controls the temperature of an HVAC system. When a temperature value is set using a command widget in the Zoho IoT application, a command payload is sent to the gateway device. After executing the command, the device must send an acknowledgement payload to confirm successful execution.

Structure of the acknowledgement publish topic:

/device/<device_id>/commands/ack 
Example of the command acknowledgement publish topic:


Subscribe Topics

Subscribe Topics are used by the edge device to receive data or instructions from the Zoho IoT application.

Zoho IoT currently provides a subscribe topic for Commands.

Commands

The commands topic is used by the edge device to receive command payloads sent from the Zoho IoT application. When a command configured in the application is executed, the corresponding payload is published to the commands topic and delivered to the subscribed edge device.

For example, if an edge device is responsible for controlling the temperature of a room, a temperature setting command triggered from the application will be received through the commands topic. The device can then process the payload and adjust the temperature remotely based on the value sent from the application.

Structure of the commands subscribe topic:
/device/<device_id>/commands
Example of the commands subscribe topic:


QoS Level  

Zoho IoT currently supports only QoS 1 (Quality of Service level 1) for MQTT communication.

QoS 1 ensures that messages are delivered at least once by requiring an acknowledgment from the receiver. This provides a balance between reliability and network efficiency, making it suitable for most IoT data transmission scenarios.
 

      Create. Review. Publish.

      Write, edit, collaborate on, and publish documents to different content management platforms.

      Get Started Now


        Access your files securely from anywhere

          Zoho CRM Training Programs

          Learn how to use the best tools for sales force automation and better customer engagement from Zoho's implementation specialists.

          Zoho CRM Training
            Redefine the way you work
            with Zoho Workplace

              Zoho DataPrep Personalized Demo

              If you'd like a personalized walk-through of our data preparation tool, please request a demo and we'll be happy to show you how to get the best out of Zoho DataPrep.

              Zoho CRM Training

                Create, share, and deliver

                beautiful slides from anywhere.

                Get Started Now


                  Zoho Sign now offers specialized one-on-one training for both administrators and developers.

                  BOOK A SESSION







                              Quick LinksWorkflow AutomationData Collection
                              Web FormsEnterpriseOnline Data Collection Tool
                              Embeddable FormsBankingBegin Data Collection
                              Interactive FormsWorkplaceData Collection App
                              CRM FormsCustomer ServiceAccessible Forms
                              Digital FormsMarketingForms for Small Business
                              HTML FormsEducationForms for Enterprise
                              Contact FormsE-commerceForms for any business
                              Lead Generation FormsHealthcareForms for Startups
                              Wordpress FormsCustomer onboardingForms for Small Business
                              No Code FormsConstructionRSVP tool for holidays
                              Free FormsTravelFeatures for Order Forms
                              Prefill FormsNon-Profit

                              Intake FormsLegal
                              Mobile App
                              Form DesignerHR
                              Mobile Forms
                              Card FormsFoodOffline Forms
                              Assign FormsPhotographyMobile Forms Features
                              Translate FormsReal EstateKiosk in Mobile Forms
                              Electronic Forms
                              Drag & drop form builder

                              Notification Emails for FormsAlternativesSecurity & Compliance
                              Holiday FormsGoogle Forms alternative GDPR
                              Form to PDFJotform alternativeHIPAA Forms
                              Email FormsFormstack alternativeEncrypted Forms

                              Wufoo alternativeSecure Forms

                              TypeformWCAG

                                All-in-one knowledge management and training platform for your employees and customers.

                                            Create. Review. Publish.

                                            Write, edit, collaborate on, and publish documents to different content management platforms.

                                            Get Started Now




                                                              You are currently viewing the help pages of Qntrl’s earlier version. Click here to view our latest version—Qntrl 3.0's help articles.




                                                                  Manage your brands on social media


                                                                    • Desk Community Learning Series


                                                                    • Digest


                                                                    • Functions


                                                                    • Meetups


                                                                    • Kbase


                                                                    • Resources


                                                                    • Glossary


                                                                    • Desk Marketplace


                                                                    • MVP Corner


                                                                    • Word of the Day


                                                                    • Ask the Experts


                                                                      Zoho Sheet Resources

                                                                       

                                                                          Zoho Forms Resources


                                                                            Secure your business
                                                                            communication with Zoho Mail


                                                                            Mail on the move with
                                                                            Zoho Mail mobile application

                                                                              Stay on top of your schedule
                                                                              at all times


                                                                              Carry your calendar with you
                                                                              Anytime, anywhere




                                                                                    Zoho Sign Resources

                                                                                      Sign, Paperless!

                                                                                      Sign and send business documents on the go!

                                                                                      Get Started Now




                                                                                              Zoho TeamInbox Resources





                                                                                                        Zoho DataPrep Demo

                                                                                                        Get a personalized demo or POC

                                                                                                        REGISTER NOW


                                                                                                          Design. Discuss. Deliver.

                                                                                                          Create visually engaging stories with Zoho Show.

                                                                                                          Get Started Now








                                                                                                                              • Related Articles

                                                                                                                              • HTTPS Telemetry Cases

                                                                                                                                Zoho IoT provides a dedicated endpoint for specific communication needs while using the HTTPS protocol for device connectivity. The typical structure for an endpoint in HTTPS configurations used in Zoho IoT is : https://<app_url>/v1/iot/<endpoint> To ...
                                                                                                                              • How to add an MQTT gateway device in a Zoho IoT application

                                                                                                                                Gateway A gateway is a device that collects data from connected sensors and transmits it to the Zoho IoT application. It typically cannot gather parameter data on its own but functions as an intermediary, relaying sensor data to the application. MQTT ...
                                                                                                                              • Accessing MQTT Topics

                                                                                                                                When connecting a device to the Zoho IoT application using the MQTT protocol, communication must occur through specific publish and subscribe topics. Each registered device in Zoho IoT has its assigned topics listed on the Connection Details page. To ...
                                                                                                                              • Understanding Policies

                                                                                                                                The Policy feature in Zoho IoT allows you to define a set of permissible actions for devices using MQTT and client certificate authentication. These actions specify the allowed communications between the device and the cloud, enabling the sending and ...
                                                                                                                              • Understanding Certificates

                                                                                                                                In any network where data communication occurs, authentication is crucial for establishing a secure and trustworthy communication channel. In Zoho IoT, Transport Layer Security (TLS) ensures that the data transmitted between the device and the server ...
                                                                                                                                Wherever you are is as good as
                                                                                                                                your workplace

                                                                                                                                  Resources

                                                                                                                                  Videos

                                                                                                                                  Watch comprehensive videos on features and other important topics that will help you master Zoho CRM.



                                                                                                                                  eBooks

                                                                                                                                  Download free eBooks and access a range of topics to get deeper insight on successfully using Zoho CRM.



                                                                                                                                  Webinars

                                                                                                                                  Sign up for our webinars and learn the Zoho CRM basics, from customization to sales force automation and more.



                                                                                                                                  CRM Tips

                                                                                                                                  Make the most of Zoho CRM with these useful tips.



                                                                                                                                    Zoho Show Resources