Updated on 2024-03-05 GMT+08:00

Prerequisites

  1. The CC-Gateway has been deployed and commissioned.
  2. This instance uses Java as the development language and the Eclipse as the development tool.
  3. Start the Eclipse and choose File > New > Java Project to create a Java project.
  4. Right-click the Java project and choose Folder from the shortcut menu to create the com.huawei.example package.
  5. Create a MainTest.java file in the com.huawei.example package.
  6. Copy the code lines in section 3.4 "Implementation Example" to the MainTest.java file.