First off all thanks for all the work you have done!
I have a little (I hope so) probelm with my IR2MQTT Bridge. From MQTT to IR works perfect, but from IR to MQTT only every 3 sec a pressed button will cause in a new message.
I use a ESP8266 and on every button hit the blue LED lights up, but only every 3 sec a new message arrives at the MQTT server and i don´t know why?
Any ideas? Every help wellcome!
Thanks in front
#if defined(ZgatewayRF) || defined(ZgatewayIR) || defined(ZgatewaySRFB) || defined(ZgatewayWeatherStation)
// variable to avoid duplicates
# ifndef time_avoid_duplicate
# define time_avoid_duplicate 3000 // if you want to avoid duplicate mqtt message received set this to > 0, the value is the time in milliseconds during which we don't publish duplicates