Realization of functions
Ali is on a cloud platform using a Wi-Fi module is connected, this section do we connect with the GPRS.
Ali cloud on the device or according to a configuration, there is a temperature, humidity there.
test
First, open the microcontroller program
Second, according to their changes, and then download the program into the microcontroller
Third, the rocker switch to adjust the position, and the STM32 serial communication GPRS
Fourth, do not forget to insert the phone card, and install the antenna
After five Microcontroller control GPRS connection on Ali cloud server, 1S lights shine
Sixth, the cloud can view the data of temperature and humidity
Seven, control and relay
{"data":"switch","bit":"1","status":"1"}
Seven, disconnect the control relay
{"data":"switch","bit":"1","status":"0"}
Program Description
This section of the program do not have anything to say, say it is those things
In fact, this section of the program is a direct copy of the one, and then modify the configuration of the place at
Place as long as the module is configured to modify the configuration of GPRS.
However, this configuration section above it, I also direct copy, copy the following section inside
But Ali cloud all kinds of information MQTT gave, so using the IMEI place used to write all their own shields
The rest did not have anything ......
Because of the framework, there are a variety of packages, this is not written in the program, like the combination of the program !!!!!!
In fact, this is what I want, I want all of the code has the versatility, portability.