Configuring the ESP32

Configuring the ESP32

Now that we've created a device for the ESP32 in the application, we can utilize the provided credentials with the Zoho IOT Arduino SDK. This setup allows us to establish a connection to the Zoho IOT application, enabling us to send soil moisture data and control the setup remotely through the application.

Downloading the Zoho IOT Arduino SDK

First, we need to download the SDK zip file from git.

To download the SDK,
  1. Click on the latest release in the Release section.



  2. Click on Source Code (zip) to download the latest SDK zip file. A file name zoho-iot-sdk-arduino-x.x.x.zip will be downloaded. Here, x.x.x will depend on the latest build number.


Note: Find out the location/path where the zip file is downloaded.

Downloading the Arduino IDE

The SDK and the script file will be uploaded to the ESP32 using the Arduino IDE.

To download the Arduino IDE,
  1. Download the IDE package based on your system.



  2. Install the downloaded package in your Mac or PC.

Accessing the Connection Credentials

You can access the connection credentials of the registered device with the following steps.
  1. Select Devices > Devices in the left pane.
  2. Click the name of the device you want the connection credentials for. For this illustration, My ESP(Device created in the previous step) is selected. This will open the device's information page.



  3. Click Actions > Connection Credentials. The connection credentials of that specific device will be displayed.



    The connection credentials will now be displayed.

Note: Keep the connection credentials tab open in your browser, as this will allow you to easily copy and paste the credentials.

Configuring the ESP32

With the necessary packages downloaded, the IDE installed, and the ESP32 connected to your computer, you are now ready to configure the ESP32 with the connection credentials of your registered device and establish a connection with the Zoho IOT application.
Note: Ensure you maintain a stable internet connection for the upcoming steps.
To onboard the ESP32,
  1. Connect the ESP32 to your Mac or PC using the appropriate cable and adapters.



  2. Open the Arduino IDE. 



    Note: Click Open or Proceed if a do you want proceed pop up appears.
  3. Select Boards Manager in the left pane.



  4. Search for esp32 and Install esp32 by Expressif Systems.



    Note: This will take several minutes.

  5. Select Sketch > Include Library > Add.ZIP Library.



  6. Go to the location of the downloaded Arduino SDK > Select zoho-iot-sdk-arduino-x.x.x.zip file > click Open. Replace x.x.x with the latest version number. The SDK library will be installed.



  7. Select Files > Examples > ZOHO-IOT-SDK > esp32_soil_moisture_sensor. Scroll down to the last to find ZOHO-IOT-SDK. The program will now be loaded.



  8. Replace Wifi_ssid with the WiFi name and Wifi_password with the corresponding wifi password.



  9. Replace /mqtt_domain_name/v1/devices/client_id/connect with the Username from the connection credentials of My ESP device. (Device created in the Zoho IOT application).



  10. Replace mqtt_password with the Password/Authentication Token form the connection credentials of My ESP device (Device created in the Zoho IOT application).



  11. Click on Select Board > Select Other Board and Port.



  12. Search for your ESP32 board. For this illustration, DOIT ESP32 DEVKIT V1 is selected > Select the port of the esp32 connected to your Mac or PC.



  13. Click the Upload button.


The program will now be uploaded to the connected ESP32 board.
​
 
 
 
 


    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
                          CRM 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
                          Mobile App
                          Form Designer HR
                          Mobile Forms
                          Card Forms Food Offline Forms
                          Assign Forms Photography
                          Mobile Forms Features
                          Translate Forms Real Estate Kiosk in Mobile Forms
                          Electronic Forms

                          Notification Emails for Forms Alternatives Security & Compliance
                          Holiday Forms Google Forms alternative  GDPR
                          Form to PDF Jotform alternative HIPAA Forms
                          Email Forms
                          Encrypted Forms
                          Embeddable Forms
                          Secure Forms
                          Drag and Drop form builder
                          WCAG


                                            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

                                                                                                              • Configuring fields: Device products

                                                                                                                This document provides a detailed overview of the various fields you will encounter when creating a custom device product in the Zoho IOT application. The field values specified during the configuration of a device product are not permanent ...
                                                                                                              • Configuring Locations

                                                                                                                Location Actions The various actions that can be performed on a location from the Hierarchy and List View is provided below: Add Asset Add Device Enable Status Propagation Datapoint Configuration Commands Configuration Alarm Rules Configuration Add ...
                                                                                                              • Configuring Schedules

                                                                                                                Schedules are automated, user-defined actions that can be executed as custom functions or commands either at a specific time or on a recurring basis. These actions allow you to create customized scheduling scenarios that run periodically based on ...
                                                                                                              • Configuring Webhooks

                                                                                                                Webhooks feature in the application uses a mechanism to send real-time data to another third party system or URL when it is executed. These webhooks push data to a specific URL as soon as an event happens, and thereby help the users to invoke any ...
                                                                                                              • Configuring Email Notifications

                                                                                                                Configuring instant email notifications is a crucial aspect of automated actions in any IoT setup, ensuring real-time alerts, improved monitoring, and automated responses. It keeps users informed about critical events, enabling efficient monitoring ...
                                                                                                                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