Module SDK Development Access

This topic describes the solution selection and development process of Tuya module SDK, as a quick start guide for developers. For development tutorials of specific communication protocols, see the development overviews of corresponding solutions.

Solution overview

As one of the most frequently-used solutions to connect to the Tuya Platform, the module SDK solution applies to building smart products that use modules as the master control. Tuya provides hardware modules, apps, and cloud services. You only need to focus on product function R&D and develop smart products efficiently and quickly with Tuya IoTOS SDK, all-in-one apps, and panels.

Solution selection

The communication diagram of module SDK development is as follows.

Communication diagram

Development process

Step 1: product creation

You can download the module SDK development documents when creating the product.

  1. Log in to IoT Console.

  2. Refer to Create Products and create a product that adopts the custom solution.

    Note: For products that use module SDK connection, you must select the custom solution. The communication mode determines the protocol and module recommendation.

    Custom solution

  3. Refer to Standard Functions and Custom Functions and select functions for the product.

    A data point (DP) is an abstract representation of a product function. Tuya provides all products with standard DPs. You can select DPs according to your actual requirements.

    Data points

  4. Refer to Design App UI and configure the control panel.

    In an app, the control interface of a device is called a panel. Tuya provides nearly 100 types of free standard panels for you. The standard panels can be customized. For more information about app panel configuration, see Design App UI. If you want to customize the panel, Tuya provides a custom panel development service.

    Design app UI

  5. Download development documents.

    IoT Console recommends modules to you according to your product and communication solution. You can place an order online. You can also select other modules as needed. For the module datasheet, see TYWE1S Module Datasheet.

    Development documents

Step 2: development debugging

After the product is created, you can purchase the module sample, download development documents in the IoT Console, and start development debugging. For different protocols, you can view the following tutorials according to the protocol in the downloaded development documents:

Step 3: hardware debugging

After receiving the module sample, you can build the minimum module system for software debugging. For more information, see the following documentation:

Step 4: software debugging

For more information about software code development, see the demo and documentation in the SDK:

Step 5: joint debugging