简体   繁体   English

MQTT Sensor 提供的数据过多

[英]MQTT Sensor provides too much data

I have a setting with:我有一个设置:

  • MQTT temperature sensor MQTT温度传感器
  • Mosquitto broker蚊子经纪人
  • Azure Cloud Azure 云

The problem is that the sensor sends data every minute and there is no way to reduce these intervals to every 15 minutes (in Device).问题是传感器每分钟发送一次数据,并且无法将这些间隔减少到每 15 分钟(在设备中)。

Is there a possibility with the Mosquitto Broker to receive data only every 15 minutes or to forward the data to the cloud only every 15 minutes? Mosquitto Broker 是否有可能每 15 分钟接收一次数据,或者每 15 分钟才将数据转发到云端?

Thank you in advance先感谢您

A real simple way to do this is to use Node-Red with an MQTT receiver node and connect it to a RateLimit node, setting it to 1 every 15 min.一个真正简单的方法是将 Node-Red 与 MQTT 接收器节点一起使用,并将其连接到 RateLimit 节点,每 15 分钟将其设置为 1。 Modify the topic on the outbound send to something else and use that topic for the Azure Cloud.将出站发送上的主题修改为其他内容,并将该主题用于 Azure 云。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM