Browse Source

change query range

another_feature
LautaroGalantini 4 years ago
parent
commit
2c486a4381
  1. 2
      test.cpp

2
test.cpp

@ -2,7 +2,7 @@ void loop() {
// Construct a Flux query // Construct a Flux query
// Query will find the worst RSSI for last hour for each connected WiFi network with this device // Query will find the worst RSSI for last hour for each connected WiFi network with this device
String query = "from(bucket: \"Prueba_Enviando_Datos\") \ String query = "from(bucket: \"Prueba_Enviando_Datos\") \
|> range(start: -1h) \ |> range(start: -2h) \
|> filter(fn: (r) => r._measurement == \"button_status\" and r._field == \"stauts\") \ |> filter(fn: (r) => r._measurement == \"button_status\" and r._field == \"stauts\") \
|> last()"; |> last()";

Loading…
Cancel
Save