Quick Access to the Pairing Process of a Single Product

Last Updated on : 2024-11-15 08:51:03download

Device pairing BizBundle for a single category is supported to improve the BizBundle configuration and meet individual needs. You can get quick access to the pairing process of a single product, which helps save time, improve efficiency, and implement fine management.

Key strengths

  • Flexible and convenient access: Supports quick access to the customization of device pairing through a new portal.
  • Custom settings: Allows you to customize the homepage of device pairing to meet diverse needs.
  • Efficient management: Improves the configuration of device pairing BizBundle to implement finer operation management.

Example

To create a product details page, you can add a pairing portal to a prominent position on the page and place additional portals in other appropriate locations. Click the portal and get access to the pairing process that you have configured on the Tuya Developer Platform. You can modify and customize the pairing configuration based on actual requirements.

Preparation

For more information about BizBundle integration, see Preparation and Integrate with Framework.

Product pairing guidance

Step 1: Log in to Tuya Developer Platform

  1. Open your browser, and visit Tuya Developer Platform.
  2. Log in using your account and password. Sign up if you do not have an account.

Step 2: Create a product

  1. Click Create in Developer Console on the homepage.
  2. Select a product category.
  3. Specify the product name and product model according to the prompts.

Step 3: Set pairing guidance

  1. In the Product Configuration step, find Device Pairing.

  2. Click Settings to configure the following parameters:

    • Pairing mode:
      • Tuya supports various pairing modes, including Wi-Fi Easy Connect (EZ) mode, Access Point (AP) mode, and pairing over Bluetooth. Choose a pairing mode according to the product type and scenario.
    • Pairing guidance:
      • Configure a guidance page to facilitate the pairing process. You can customize the page’s title, description, images, and buttons.
    • Pairing reminder:
      • Set messages that might be displayed during the pairing process. For example, a success or failure notification and instructions for device pairing.

After completing the configuration, you can scan the QR code with the Tuya app to verify the configuration.

Get product pairing guidance

Import ThingSmartBusinessExtensionKit to podfile.

Method

/// Request a list of level-2 categories corresponding to level-1 categories
/// @param param Request parameters
/// @param success Network success callback to return bootstrap details
/// @param failure Network failure callbacks
- (void)requestCategoryDetailWithParam: (ThingActivatorCategoryDetailRequestData *)param success: (void(^)(ThingSmartDeviceCategoryModel *result))success failure: (ThingActivatorCallbackError)failure;

Parameters

Parameter Type Description
bizValue NSString The ID of the product or category.
bizType NSNumber The bizValue type.
  • 0: category
  • 1: product

Sample Objective-C

ThingActivatorCategoryDetailRequestData *param = [[ThingActivatorCategoryDetailRequestData alloc] init];
param.bizType = @1;
param.bizValue = @"productid";

[self.requestService requestCategoryDetailWithParam:param success: ^(ThingSmartDeviceCategoryModel * _Nonnull result) {

} failure:failure];

Enter the pairing process

For more information about BizBundle integration, see Device Pairing UI BizBundle.

Sample Objective-C

  id<ThingActivatorProtocol> impl = [[ThingSmartBizCore sharedInstance] serviceOfProtocol:@protocol(ThingActivatorProtocol)];
  [impl gotoAcvitavorWithCategoryModel:result userInfo:@{}];

For more information about device pairing, see the sample.

With these new features and optimization methods, Tuya aims to enable smarter and more convenient pairing management. We hope these innovations will help your business reach new heights.