Skip to content

温湿度传感器

wuzhun.wz edited this page Jun 12, 2018 · 1 revision

功能介绍

每10秒获取一次温湿度状态,并上报云端

应用介绍

image.png | left | 827x357

  • 模组IO配置 DATA的连接在GPIO 19管脚上
{
  "GPIO": [
    {
      "id": "dht11",
      "port": 19,
      "dir": 3,
      "pull": 1
    }
  ]
}

接线示意图:

image.png | left | 743x663

云端控制

  • 查看当前温湿度

image.png | left | 827x317

内存占用情况

  • 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

# 

Clone this wiki locally