/AliOS-Things-master/solutions/flower_demo/ |
A D | flower_app.c | 177 uint8_t temp =0,humidity=0,d_flag = 0; in report_2_cloud() local 185 d_flag = DHT11_Read_Data(&temp,&humidity); in report_2_cloud() 187 printf("temp ->%d humidity->%d --%d\n",temp,humidity,d_flag); in report_2_cloud() 194 if((last_hum != humidity)&&(!d_flag)){ in report_2_cloud() 195 snprintf(property_payload, sizeof(property_payload), "{\"Humidity\": %d}", humidity); in report_2_cloud() 198 last_hum = humidity; in report_2_cloud() 204 uint8_t temp =0,humidity=0; in handle_temp_cmd() local 216 DHT11_Read_Data(&temp,&humidity); in handle_temp_cmd() 217 LOGI("APP", "temp ->%d humidity->%d\n",temp,humidity); in handle_temp_cmd()
|
A D | README.md | 186 uint8_t temp =0,humidity=0,d_flag = 0; 194 d_flag = DHT11_Read_Data(&temp,&humidity); 196 printf("temp ->%d humidity->%d --%d\n",temp,humidity,d_flag); 204 if((last_hum != humidity)&&(!d_flag)){ 206 snprintf(property_payload, sizeof(property_payload), "{\"Humidity\": %d}", humidity); 209 last_hum = humidity;
|
/AliOS-Things-master/hardware/board/haaseduk1/drivers/sensor/ |
A D | drv_temp_humi_si_si7006.c | 96 bool si7006_getHumidity(float *humidity) in si7006_getHumidity() argument 110 *humidity = ((125.0f * (float)value) / 65535.0f) - 6.0f; in si7006_getHumidity() 111 LOGI("SENDOR", "humidity: %f\n", *humidity); in si7006_getHumidity() 120 void si7006_getTempHumidity(float *humidity, float *temperature) in si7006_getTempHumidity() argument 123 si7006_getHumidity(humidity); in si7006_getTempHumidity()
|
A D | drv_temp_humi_sensylink_cht8305.c | 37 void cht8305_getTempHumidity(float *humidity, float *temperature) in cht8305_getTempHumidity() argument 62 *humidity = ((125.0f * (float)cht8305_humi) / 65535.0f) - 6.0f; in cht8305_getTempHumidity() 63 LOGD("SENDOR", "humidity: %f\n", *humidity); in cht8305_getTempHumidity()
|
A D | drv_temp_humi_si_si7006.h | 33 extern bool si7006_getHumidity(float *humidity); 34 extern void si7006_getTempHumidity(float *humidity, float *temperature);
|
A D | drv_temp_humi_sensylink_cht8305.h | 13 extern void cht8305_getTempHumidity(float *humidity, float *temperature);
|
/AliOS-Things-master/solutions/eduk1_demo/k1_apps/humiture/ |
A D | humiture.md | 192 bool si7006_getHumidity(float *humidity) 207 *humidity = ((125.0f * (float)value ) / 65535.0f) - 6.0f; 208 LOGI("APP", "humidity: %f \n", *humidity); 212 LOGI("APP", "Error on humidity\n"); 218 //get temp and humidity 219 void si7006_getTempHumidity(float *humidity, float *temperature) 222 si7006_getHumidity(humidity);
|
/AliOS-Things-master/components/sensor/drv/ |
A D | drv_temp_humi_sensirion_sht30.c | 51 uint32_t humidity; member 104 static int drv_sht30_read_temp_and_humi(i2c_dev_t *drv, int32_t *temperature, uint32_t *humidity) in drv_sht30_read_temp_and_humi() argument 111 if (temperature == NULL && humidity == NULL) in drv_sht30_read_temp_and_humi() 124 if (humidity != NULL) in drv_sht30_read_temp_and_humi() 125 *humidity = (uint32_t)((12500 * humi_raw) >> 13); in drv_sht30_read_temp_and_humi() 138 …ret = drv_sht30_read_temp_and_humi(drv, &g_sht30_data_new.temperature, &g_sht30_data_new.humidity); in drv_sht30_update_data() 254 pdata->h = g_sht30_data_new.humidity / 100; in drv_humi_sensirion_sht30_read()
|
A D | drv_temp_humi_sensirion_sht31.c | 51 uint32_t humidity; member 104 static int drv_sht31_read_temp_and_humi(i2c_dev_t *drv, int32_t *temperature, uint32_t *humidity) in drv_sht31_read_temp_and_humi() argument 111 if (temperature == NULL && humidity == NULL) in drv_sht31_read_temp_and_humi() 124 if (humidity != NULL) in drv_sht31_read_temp_and_humi() 125 *humidity = (uint32_t)((12500 * humi_raw) >> 13); in drv_sht31_read_temp_and_humi() 138 …ret = drv_sht31_read_temp_and_humi(drv, &g_sht31_data_new.temperature, &g_sht31_data_new.humidity); in drv_sht31_update_data() 254 pdata->h = g_sht31_data_new.humidity / 100; in drv_humi_sensirion_sht31_read()
|
A D | drv_temp_humi_sensirion_shtc1.c | 53 uint32_t humidity; member 137 uint32_t *humidity) in drv_shtc1_read_temp_and_humi() argument 144 if (temperature == NULL && humidity == NULL) { in drv_shtc1_read_temp_and_humi() 159 if (humidity != NULL) { in drv_shtc1_read_temp_and_humi() 160 *humidity = (uint32_t)((12500 * humi_raw) >> 13); in drv_shtc1_read_temp_and_humi() 175 &g_data_new.humidity); in drv_shtc1_update_data() 322 pdata->h = g_data_new.humidity / 100; in drv_humi_sensirion_shtc1_read()
|
A D | drv_temp_humi_ams_ens210.c | 127 uint32_t humidity; member 171 static int drv_ens210_read_temp_and_humi(i2c_dev_t* drv, int32_t *temperature, uint32_t *humidity) in drv_ens210_read_temp_and_humi() argument 196 if (temperature == NULL && humidity == NULL) in drv_ens210_read_temp_and_humi() 238 *humidity = (uint32_t)(H*10); // relative humidity (in ‰) in drv_ens210_read_temp_and_humi() 257 … ret = drv_ens210_read_temp_and_humi(drv, &g_ens210_data.temperature, &g_ens210_data.humidity); in drv_ens210_update_data() 394 … = drv_ens210_read_temp_and_humi(&ens210_ctx, &g_ens210_data.temperature, &g_ens210_data.humidity); in drv_temp_ams_ens210_read() 462 … = drv_ens210_read_temp_and_humi(&ens210_ctx, &g_ens210_data.temperature, &g_ens210_data.humidity); in drv_humi_ams_ens210_read() 466 pdata->h = g_ens210_data.humidity; in drv_humi_ams_ens210_read()
|
A D | drv_temp_humi_baro_bosch_bme280.c | 684 uint32_t humidity = 0; in drv_bosch_bme280_comp_humi() local 709 humidity = (uint32_t)(var5 / 4096); in drv_bosch_bme280_comp_humi() 711 if (humidity > humidity_max) { in drv_bosch_bme280_comp_humi() 712 humidity = humidity_max; in drv_bosch_bme280_comp_humi() 715 (humidity * BME280_HUMI_UNIT_RATIO_10) / BME280_HUMI_UNIT_RATIO_1024; in drv_bosch_bme280_comp_humi()
|
/AliOS-Things-master/components/py_engine/tests/haas/HaaSEdu/python-apps/driver/i2c/ |
A D | test_si7006.py | 30 humidity = si7006Dev.getHumidity() variable 31 print("The humidity is: %f" % humidity)
|
/AliOS-Things-master/components/py_engine/tests/haas/HaaS100/python-apps/driver/i2c/ |
A D | test_si7006.py | 30 humidity = si7006Dev.getHumidity() variable 31 print("The humidity is: %f" % humidity)
|
/AliOS-Things-master/components/amp/modules/ |
A D | si7006.js | 114 var humidity; 122 humidity = ((125.0 * value) / 65535.0) - 6.0; 123 return humidity;
|
/AliOS-Things-master/components/amp/test/ |
A D | test_si7006.js | 30 var humidity = si7006.getHumidity(); variable 31 console.log("Humidity is: " , humidity);
|
/AliOS-Things-master/components/py_engine/framework/ |
A D | si7006.py | 102 humidity = (125.0 * value) / 65535.0 - 6.0 103 return humidity
|
/AliOS-Things-master/solutions/javascript_demo/agriculture_demo/ |
A D | app.js | 160 var humidity = 50; 168 … CurrentHumidity:humidity, AlarmState: pirStatus, Atmosphere: pressure, SoilTemperature: 25.5,
|