改符号,少输出(debug)

This commit is contained in:
james 2024-07-31 01:45:20 +08:00
parent d9d60e5c57
commit 880f89d634
1 changed files with 2 additions and 2 deletions

View File

@ -110,7 +110,7 @@ void make_file(char *String)
//写入文件
write(fd, String, sizeof(String));
rt_kprintf("Write done.\n");
// rt_kprintf("Write done.\n");
//关闭文件
close(fd);
@ -128,7 +128,7 @@ void tmp_payload(void)
// 读取温湿度值
Humi = aht10_read_humidity(Dev);
Temp = aht10_read_temperature(Dev);
sprintf(tmp, "Temp%f ; Humi%f ; Count %d", Temp, Humi,++cnt);
sprintf(tmp, "Temp:%f ; Humi:%f ; Count: %d", Temp, Humi,++cnt);
make_file(tmp);
sprintf(tmp, "{\"params\":{\"temperature\":%.2f,\"humidity\":%.2f}}", Temp, Humi);
// rt_kprintf("\n%f %f tmp:%s\n",Humi,Temp,tmp);