Adding a message formatter to a device product

Adding a message formatter to a device product

Instead of adding a message formatter to individual device instances, you can associate it directly with the device product. This ensures that all device instances derived from the product automatically include the message formatter by default. This applies to both imported device products and user defined device products.

Prerequisite: The required device product must be imported from the device gallery or must be added as a user defined device product before proceeding.

Note: Message formatter can be added only to device products of the smart sensor type with support for LoRaWan via LoRaWAN Datastream. For OEMs, if you need help creating a message formatter for your device product contact support@zohoiot.com.

To add a message formatter to a device product,
  1. Access the Developer Application.
  2. Select Products in the left pane.



  3. Click on the required device product. For this illustration, the device product WS302 is selected. This opens the device product's information page.



  4. Click Actions > Manage Message Formatter.



  5. Click Associate Custom Function.



  6. Click Add Custom Function.



  7. Provide the details in the appropriate fields and click Save and Associate. This will open the custom function editor.  For this illustration, a message formatter custom function called WS302 Message Formatter is created.



    Note: Display name will be the name of your custom function. Function name will be used for internal reference purposes.

  8. Provide the required custom function, in the Javascript Lite programming language, to format the received messages.



    Click here to view a sample message formatter custom function.

  9. Click Save and Associate to save the function and exit the editor.



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

 
See Also
Associating a message formatter custom function to a device product
Save and Execute a message formatter custom function
Adding and managing message formatters


    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 Links Workflow Automation Data Collection
                          Web Forms Enterprise Begin Data Collection
                          Interactive Forms Workplace Data Collection App
                          Offline Forms Customer Service Accessible Forms
                          Digital Forms Marketing Forms for Small Business
                          HTML Forms Education Forms for Enterprise
                          Contact Forms E-commerce Forms for any business
                          Lead Generation Forms Healthcare Forms for Startups
                          Wordpress Forms Customer onboarding Order Forms for Small Business
                          No Code Forms Construction RSVP tool for holidays
                          Free Forms Travel
                          Prefill Forms Non-Profit

                          Intake Forms Legal

                          Form Designer HR

                          Card Forms Food
                          Assign Forms Photography

                          Translate Forms Real Estate
                          Electronic Forms

                          Notification Emails for Forms Alternatives
                          Holiday Forms Google Forms alternative 
                          Form to PDF Jotform alternative





                                            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 formatter from a device product

                                                                                                                A message formatter associated to a device product can be disassociated. Note: When a message formatter is removed from a device product, it will be disassociated from all the device instances created based on the product. To disassociate a message ...
                                                                                                              • Adding a message formatter to a device instance

                                                                                                                A message formatter can be added only to a smart sensor type based device instance using LoRaWan via LoRaWAN Datastream device connectivity. It is first added as a custom function of the Message Formatter type and then associated with the device. To ...
                                                                                                              • 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 message formatter and message handler

                                                                                                                In Zoho IOT application, data sent from the gateway/smart device can be enhanced further. This includes decoding raw payload into a usable JSON format and performing additional computations and enrich by calling external API's. This is achieved using ...
                                                                                                              • Disassociating a device product

                                                                                                                You can disassociate a device product from a device model. Device Product Dependency: When device instances are created based on a combination of a specific device model and device product, the device product becomes a dependency for these instances. ...
                                                                                                                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