Adding a message handler to a device model

Adding a message handler to a device model

A message handler can be configured in a device model as a custom function. This ensures that every device instance derived from that specific model will automatically include the message handler.

To add a message handler to a device model,
  1. Access the Developer Application.
  2. Click Devices in the left pane.
  3. Click on the name of the device model for which you want to add the message handler. For this illustration, the device model Home Gateway is selected.



  4. Scroll down on the left pane of the device model's information page and select Message Handler.


  5. Click Configure Message Handler.



  6. Click Associate Custom Function.



  7. Click Add Custom Function.



  8. Provide the required values in the appropriate fields. For this illustration, a message handler called "Temperature Delta" is created.



    Learn more about configuring fields for a message handler.

  9. Click Save & Associate. This will open the deluge code builder.



  10. Provide the required code.



  11. Click Save and Associate to save the code to the custom function and exit.



  12. Click Save.

A message handler has been successfully created and associated with the selected device model. All the instances derived based on this model will have the same message handler configured for them, and the custom function will be executed every time a payload is received.

See Also
Save and execute a message handler custom function
Deluge scripting language
Adding and managing message handlers 


    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









                                            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

                                                  Zoho Desk Resources

                                                  • Desk Community Learning Series


                                                  • Digest


                                                  • Functions


                                                  • Meetups


                                                  • Kbase


                                                  • Resources


                                                  • Glossary


                                                  • Desk Marketplace


                                                  • MVP Corner


                                                  • Word of the Day


                                                    Zoho Marketing Automation

                                                      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 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

                                                                                                              • Disassociating a message handler custom function from a device model

                                                                                                                You can remove a message handler custom function from a device model. To disassociate a message handler custom function, Access the Developer Application. Click Devices in the left pane. Click on the name of the device model for which you want to ...
                                                                                                              • Reassigning a message handler for a device model

                                                                                                                You can change the custom function selected as a message handler for a device model. Prerequisite: Message handler custom functions already created must have the same device model as the one you want to reassign. To reassign a custom function, Access ...
                                                                                                              • Associating a custom function as a message handler in a device model

                                                                                                                You can create multiple message handler custom functions for a device model and then choose the one that you require for it. This ensures that all devices based on that model will automatically include the message handler. Prerequisite: You must have ...
                                                                                                              • 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 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 ...
                                                                                                                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