温湿度传感器 - Shaofa/AliOS-Things-Certification-Manual GitHub Wiki
每10秒获取一次温湿度状态,并上报云端
-
代码库
[email protected]:Gravity/gravity_lite.git
代码路径:gravity_lite/devices/dht11
-
linkdevelop平台 登录账号:电子书测试账号002 项目名字:dht11 产品名称:温湿度传感器 URL: https://linkdevelop.aliyun.com/p/a124XKk9O6qua0XK/device/productaccess/#/productaccess/productdetail?productKey=a1cXajyhMQ8&key=definition
- 模组IO配置 DATA的连接在GPIO 19管脚上
{
"GPIO": [
{
"id": "dht11",
"port": 19,
"dir": 3,
"pull": 1
}
]
}
接线示意图:
- 查看当前温湿度
- JS符号表
# meminfo
[3137.460]<W> main [handle_meminfo_cmd#227] : call handle_meminfo_cmd ...
[3137.460]<W> BoneEngine [handle_meminfo_cmd#228] : memory usage= 474 max=540
#
- 系统内存
# dumpsys mm_info
......
------------------------- memory allocation statistic ------------------------------
free | used | maxused
119800 | 121544 | 128160
-----------------number of alloc times:-----------------
[2^06] bytes: 63121 |[2^07] bytes: 8064 |[2^08] bytes: 2617 |[2^09] bytes: 2903 |
[2^10] bytes: 306 |[2^11] bytes: 51079 |[2^12] bytes: 8 |[2^13] bytes: 5 |
[2^14] bytes: 5 |[2^15] bytes: 0 |[2^16] bytes: 0 |[2^17] bytes: 0 |
[2^18] bytes: 0 |[2^19] bytes: 0 |[2^20] bytes: 0 |[2^21] bytes: 0 |
-----------------fix pool information:-----------------
free | used | total
4800 | 3392 | 8192
#
�