RFFHEM icon indicating copy to clipboard operation
RFFHEM copied to clipboard

Equal messages i not dispatched if it is equal and only 2 seconds are between.

Open sidey79 opened this issue 7 years ago • 3 comments

Expected Behavior

If the same message arraives 2 seconds later again, it should be dispatched

Actual Behavior

Dispatch of equal messages works only after 3 seconds

Steps to Reproduce the Problem

  1. Call SIGNALduino_Dispatch
  2. sleep 2 seconds
  3. Call SIGNALduino_Dispatch

Specifications

  • Versionmodul : v3.3.3-dev

https://github.com/RFD-FHEM/RFFHEM/blob/ed075008f03710f54aefe82acdf811fcd6b4a720/FHEM/00_SIGNALduino.pm#L1862

sidey79 avatar Oct 19 '18 22:10 sidey79

@Ralf9

Ich habe dich hier zugewiesen, da Du die codezeile damals beigesteuert hast.

sidey79 avatar Oct 29 '18 20:10 sidey79

Funktioniert es, wenn zwischen den Dispatch ca 2.1 - 2.2 Sekunden gewartet wird?

Ralf9 avatar Oct 30 '18 12:10 Ralf9

Nein funktioniert auch mit 2.9 Sekunden nicht.

($hash->{TIME}+2 < time() Ist das Problem, da der letzte Zeitpunkt+2 kleiner der aktuellen Zeit sein muss und die Zeit nur Sekundengenau bei time() ist.

sidey79 avatar Nov 27 '18 20:11 sidey79