This example uses Developer Kit (with AliOS Things ported) as the development hardware to implement data uploading from a board-mounted temperature sensor to Link Develop, and uses Web App for demonstration.
You need to configure the environment before you use BoneEngine to perform device-side development. The configuration steps are shown as follows:
npm i be-cli -g -P. If you are still prompted that the command cannot be found even when you run
beafter the preceding global installation is done, run the
npm prefix -gcommand to get the module installation path of Node.js, and then simply add the global installation path in the output to the "Path" entry of the environment variable.
git clone email@example.com:alibaba/AliOS-Things.git.
Now that the environment is configured, we are ready to begin development.
We will be using Link Develop to set up our IoT network on Alibaba Cloud. Choose Create Project (you may name it as you want) > Device Development > Add Product. Select Other for the product type, select WiFi for the communication method, and select Alink for the data format.
Select Add Custom Features in Product Details and add the following features:
Choose Device Development > Add Debugging Devices, and take note of the device triplets.
Open the source code directory of AliOS Things in a compiler, open the
AliOS-Things/framework/tinyengine/samples/app/lcd_shtc1_mqtt/device.js file, and change Three Device Elements to Device Triplets that you obtained before. Save your changes.
Use the terminal to compile the sample application:
be -p samples/app/lcd_shtc1_mqtt.
Connect Developer Kit to a computer and run
Burn the compiled bin file to the device:
be push app.bin
Restart the device. After restarting, the device automatically loads and runs this file, and simultaneously uploads it to the Link Develop platform.
To help you get started quickly, here we use the visual creation feature of Web App integrated in the new version of Link Develop. All we need to do is drag the components of the hygrothermograph and connect to your data.
The mix of AliOS Things TinyEngine and Link Develop Bone.js allows front-end developers to quickly and seamlessly get started with IoT development, without having to learn other programing languages. This also represents the compatibility and originality of the Alibaba Cloud IoT Platform.
To learn more about Alibaba Cloud IoT Platform, visit www.alibabacloud.com/product/iot
Alibaba Clouder - August 6, 2019
Alibaba Clouder - May 27, 2017
Alibaba Clouder - September 30, 2019
GXIC - February 27, 2019
GeekHouse - October 19, 2018
Alibaba Clouder - April 20, 2018
Provides secure and reliable communication between devices and the IoT Platform which allows you to manage a large number of devices on a single IoT Platform.Learn More
Connect your business globally with our stable network anytime anywhere.Learn More
An end-to-end software-defined network solution for multinational enterprises.Learn More
More Posts by GXIC