获取功率

This commit is contained in:
zogodo
2019-10-10 16:40:35 +08:00
parent dfbc973888
commit 7a771cf308
6 changed files with 76 additions and 0 deletions

View File

@@ -161,6 +161,7 @@ int application_start(void)
//发送功率数据
if (power_last != power || main_num > 4)
{
SetPowerRecord(&power_record, power);
power_last = power;
main_num =0;
sprintf(power_buf, "{\"mac\":\"%s\",\"power\":\"%u.%u\",\"total_time\":%u}",