In order to lower the barrier for the development of smart hardware App and reduce the investment in development resources, Gizwits has further developed the App open source code that implements the complete functions based on the Gizwits App Framework. After creating corresponding Data Points on the product project, Gizwits IoT Cloud generates an App reference code of the corresponding product according to the defined Data Points.
The automatically generated App code modularly integrates the necessary functions of a smart hardware App, mainly including:
After developers download the source code, they only need to optimize the UI and design the control logic and device control interface. The control page of the source code implements the standard flow of device control using Gizwits App SDK. During the secondary development of the App, you only need to optimize related code according to the process to complete the control App of your own product.
Gizwits App Code Auto-Generator currently supports Andriod, iOS, and APICloud.
1.1. After creating the product and Data Points in the Gizwits Developer Center, choose “Application Configuration”.
Note that the naming of Data Points cannot be a common programming language keywords, such as switch, static, enum, native, etc. Otherwise, the generated code will be incorrect!
1.2. Choose “New Application” on the Application Configuration page
1.3. Create an Android application and an iOS application separately.
2.1. Check the product secret and copy it to the clipboard.
2.2. Click “Application Development”, select the Android application you just created, paste the product secret you copied, and click “Generate Code Package”.
2.3. After a while, you can download the source code.
2.4. The downloaded source code is a compressed file. After decompression, you can see the related source code.
2.5. For the guide to the source code, please refer to the appendix “source code explanation” after decompression!
See Gizwits App Code Auto-Generator to learn about the functionality of the automatically generated App code.
See “Gizwits App Framework” to grasp
See “App Development SDK” to develop your IoT App
More application development guides