每次心跳增加光敏值的采集,供后面规则设置

onereq
Matthew 3 months ago
parent a2aef51df6
commit 8951b8cdaf

@ -527,6 +527,22 @@ Java_com_xypower_mpapp_MicroPhotoService_sendHeartbeat(
pTerminal->SendHeartbeat();
#ifdef OUTPUT_DBG_INFO
std::thread t([]()
{
time_t ts = time(NULL);
int ldr = GpioControl::getLightAdc();
char buf[64] = { 0 };
snprintf(buf, sizeof(buf), "%s %d\r\n", FormatLocalDateTime(ts).c_str(), ldr);
appendFile("/sdcard/com.xypower.mpapp/tmp/ldr.txt", buf, strlen(buf));
});
t.detach();
#endif
return JNI_TRUE;
}

Loading…
Cancel
Save