Adding a Message Handler through a Device Instance

Adding a Message Handler through a Device Instance

A message handler custom function can be added through a device instance in the end application.

To add a message handler through a device,
  1. Access the End Application.
  2. Select Devices > Devices in the left pane.



  3. Click on the name of the device for which you want to add the message handler. This opens the device's information page. For this illustration, My Rpi device is selected.



  4. Click Actions > Message Formatter and Handler.



  5. Click the Edit Message Handler button.



  6. Click Choose Custom Function.



    Info
    Learn more about Message Handler Settings.
  7. Click Add Custom Function.



    NotesNote: You also have the option to select from previously created message handler custom functions if needed. 
  8. Provide the details in the appropriate fields and click Save and Associate. This will open the custom function editor. For this illustration, a message handler custom function called My custom message handler is created.



    Info
    Learn more about the fields involved in creating a message handler custom function.
  9. Provide the required message handler custom function, in the Deluge scripting language.


  1. Click Save and Associate to save the custom function and exit the editor.



  2. Click Save. The custom function will now be associated with the selected device instance.

Message Handler Settings

When creating or editing a message handler custom function through a device instance, you will encounter the following options:



Handler Setting

Customization Mode:

Model: Selecting this option enables the use of the message handler custom function associated with the device model that the device instance is based on. It also allows you to edit the message handler for the model. Any changes made to the custom function will apply to all instances of the model with model customization.

Instance: Selecting this assigns a message handler function exclusively to the specific instance. This means any messages received for this instance will be handled by the assigned custom function, overriding the one defined in the model.

Message Handler: Here, you can modify the message handler custom function assigned to the device instance or create and assign a new one.

Execution Settings

Status: This setting determines whether the message handler must be executed for this specific device instance.

Continue on Failure: Allows the system to proceed with subsequent processing in other layers, bypassing the current handler, even if the selected message handler encounters an execution failure.

Connection Update: Configures message handling processes to be executed specifically when a device using MQTT device connectivity connects or disconnects.

See Also



      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

                              WCAG



                                        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

                                                                                                                          • Adding and managing device and device models

                                                                                                                            Prerequisite Before proceeding with this document, please ensure you have read the following prerequisite materials to fully understand the concepts discussed here: Understanding Devices Understanding Device Models Understanding Device Products ...
                                                                                                                          • Understanding Device Models

                                                                                                                            A device model serves as a blueprint and can be configured with the following : Datapoint templates Command templates Overview dashboards templates Custom fields Alarm rule templates Message Handler and Formatters Model Settings Every device created ...
                                                                                                                          • Add Device: Using a Model

                                                                                                                            Prerequisite Before proceeding with this document, please ensure you have read the following prerequisite materials to fully understand the concepts discussed here: Understanding Devices Understanding Device Models Understanding Device Products ...
                                                                                                                          • Adding a custom function in the developer application

                                                                                                                            A custom function can be added within the developer application for a specific model or module. You can configure the custom function to meet the specific requirements of a trigger or feature. Once created, this custom function will be available in ...
                                                                                                                          • Creating a Message Handler

                                                                                                                            A message handler can be created in a Zoho IoT application by selecting "Message Handler" in the Category field while creating a custom function. Configuring the fields while creating a message handler Language: Deluge is the supported language for ...
                                                                                                                            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