1. Demo App

1.1. Introduction

Demo APP mainly demonstrates the SDK development process. Before developing the APP, it is recommended to complete the operation of the Demo App according to this document.

After completing the Preparation for Integration chapter, you will get the AppKey, AppSecret, and security picture information used by the SDK. When integrating the SDK, please confirm that the AppKey, AppSecret, and security pictures are consistent with the information on the platform. Any mismatch will cause the SDK to be unusable.

Click to view Demo address🔗

  1. Replace the applicationId in the build.gradle file in the app directory with the package name of your application

image-20191101112723293

  1. Name your security picture: "t_s.bmp" and put it in the "src"-"main"-"assets" folder under the app directory

image-20191101112851418

  1. Fill your AppKey and AppSecret into the corresponding <meta-data> tags in AndroidManifest.xml

image-20191101113051694

Then click run to run your demo

1.2. Function Overview:

Demo App includes:

  • User module: Account (mobile phone or email) registration and login
  • Home management and device management module: including home creation and current home switching. Display of device list and control of device function point in home. Device rename and device removal.
  • Device activator module: including smartConfig mode, AP mode, wired gateway distribution network and gateway sub device activator
  • Smart scene module: smart scene creation and execution

1.3. Q&A

API interface request prompt signature error

{
  "success" : false,
  "errorCode" : "SING_VALIDATE_FALED",
  "status" : "error",
  "errorMsg" : "Permission Verification Failed",
  "t" : 1583208740059
}
  • Please check whether your AppKey, AppSecret and Security Picture are configured correctly and are consistent with those obtained in the Preparation for Integration chapter
  • Please check whether the security picture in the correct directory and the file name: t_s.bmp

results matching ""

    No results matching ""