mirror of
https://github.com/airgradienthq/arduino.git
synced 2025-07-31 09:27:16 +02:00
add cellular signal quality to post measures payload
If value invalid 0, then do include it to payload
This commit is contained in:
@ -827,6 +827,12 @@ std::string Measurements::buildMeasuresPayload(Measures &mc) {
|
|||||||
oss << std::round(mc.pm_03_pc[1]);
|
oss << std::round(mc.pm_03_pc[1]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
oss << ",";
|
||||||
|
|
||||||
|
if (mc.signal < 0) {
|
||||||
|
oss << mc.signal;
|
||||||
|
}
|
||||||
|
|
||||||
return oss.str();
|
return oss.str();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user