waterflow_sensor_aka_pulse_counter 源码
水流传感器-通过MQTT发送数据的脉冲计数器 用Arduino IDE编写。 该计数器使用ESP-01的GPIO3上的中断。 它是“仅通话”客户端。 在检测到脉冲时发送数据。 它会不断增加脉冲,直到断电/复位为止。 MQTT消息包含 pulses - Number of pulses counted since last device boot. moved_last_half_hour - "1" if rising or falling edges were detected on last half hour. last_pulse - Last falling
下载地址
用户评论