Код: Выделить всё
could not execute task run: runtime error @9:8-22:6: map: failed to evaluate map function: Dialer.Dial called on an error dependencyКод: Выделить всё
import "experimental/mqtt"
option task = {name: "EnvioDataToMqtt", every: 1m, offset: 0m}
from(bucket: "recepcionDatos")
|> range(start: -1h)
|> filter(fn: (r) => r._measurement == "medida")
|> filter(fn: (r) => r._field == "value")
|> map(
fn: (r) =>
({r with sent:
mqtt.publish(
broker: "tcp://miservidor:18083",
topic: "dataInflux/prueba",
message: string(v: r._value),
clientid: "mqttx",
password: "02342321223113",
qos: 0,
username: "publicador",
),
}),
)
Найдите способ отправить мои данные influxdb в MQTT
Подробнее здесь: https://stackoverflow.com/questions/781 ... db-to-mqtt
Мобильная версия