取消空格

This commit is contained in:
james 2024-07-31 08:55:24 +08:00
parent 318f8a8fcd
commit 656957d41b
1 changed files with 1 additions and 1 deletions

View File

@ -157,7 +157,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);
// rt_kprintf("\n%f %f tmp:%s\n",Humi,Temp,tmp);
make_file(tmp);
sprintf(tmp, "{\"params\":{\"temperature\":%.2f,\"humidity\":%.2f}}", Temp, Humi);