mirror of
https://github.com/airgradienthq/arduino.git
synced 2025-07-28 07:57:18 +02:00
Fix cellular payload
Interval value should be in seconds
This commit is contained in:
@ -1320,7 +1320,7 @@ void postUsingCellular() {
|
|||||||
|
|
||||||
// Build payload include all measurements from queue
|
// Build payload include all measurements from queue
|
||||||
String payload;
|
String payload;
|
||||||
payload += String(CELLULAR_MEASUREMENT_INTERVAL);
|
payload += String(CELLULAR_MEASUREMENT_INTERVAL / 1000); // Convert to seconds
|
||||||
for (int i = 0; i < queueSize; i++) {
|
for (int i = 0; i < queueSize; i++) {
|
||||||
auto mc = measurementCycleQueue.at(i);
|
auto mc = measurementCycleQueue.at(i);
|
||||||
payload += ",";
|
payload += ",";
|
||||||
|
Reference in New Issue
Block a user