By using Internet of Things technology to modify the water heater at home with Internet of Things remote control function, realize remote control of the water heater with mobile phone before going home, back home can have hot water use. This article will share with you the process of completing the smart Cloud APP based on Android system, and the mobile APP part of DIY task.

The DIY task was to make only one water heater controller based on ESP8266. The first two chapters introduced the hardware contents such as overall scheme design, modification of water heater, WIFI module selection, triode switch circuit design and overall assembly, as well as the software running in THE ESP8266 module, or the manufacturing process of the driver.

After the hardware connection is completed and the driver is loaded into the chip, it is necessary to make a mobile phone APP to realize the operation of the mobile phone to the controller.

Mobile APP Production

The production of mobile APP requires a certain foundation of Android programming. I am good at C, not Android. I realized the compilation of Android program and completed the basic function design just with the courage brought by the teacher who told us that “programming is interlinked”.

Tools are very important. The controller APP we want to make only needs a switch button to control the Internet of Things module, so it is best to use an off-the-shelf solution. The good news is that Tact Cloud automatically generates code and does everything it can.

** Implementation steps **

◆ Login twittcloud development platform:

dev.gizwits.com

◆ First add a new application

◆ Define a name

This is the device ID and SECRET that we want to control.

◆ Select android source code

Very fast generation

The generated code comes in both AndroidStudio and Eclipse forms.

AndroidStudio is recommended. Note that this software needs to download the SDK in advance, please check the specific download method on the Internet. This aspect of knowledge belongs to the knowledge outside this article, in order to maintain the consistency of the article, not detailed description here. If you need help from bloggers, please leave a message asking for detailed Settings.

After the compiled APP is installed on the mobile phone, the interface is as follows. These visual elements are automatically generated by Smart Cloud. If you need to beautify and so on, you also need the basics of Android programming. I will not describe it in detail here.

Through this APP, you can realize the control of the control module of the water heater by mobile phone. Wherever the phone is, as long as it has a network, it can control the water heater at home.

Once created, the APP will only work on one phone. This is one of its disadvantages. So it still needs to be multiplayer.

In the next article, we will make a unique TWO-DIMENSIONAL code for the controller module of our water heater, and realize the control of the controller by scanning the TWO-DIMENSIONAL code.