Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add command to change timeout in RfReceive #15061

Closed

Conversation

DarkPh0eNixKrg
Copy link

@DarkPh0eNixKrg DarkPh0eNixKrg commented Mar 8, 2022

Description:

Add command to change timeout in RfReceive
My door bell transmiter (Quhwa/1byone) sending ~70 payload (protocol 22).
I make rule to send mqtt status, but mqtt send 2-3 times payload.
To send 1 mqtt payload i was change "RF_TIME_AVOID_DUPLICATE" and add command to can change it.
But i dont know how to save timeout. After reboot timeout change to default.

I newbee in Tasmota (((
Sorry for my English

Checklist:

  • The pull request is done against the latest development branch
  • Only relevant files were touched
  • Only one feature/fix was added per PR and the code change compiles without warnings
  • The code change is tested and works with Tasmota core ESP8266 V.2.7.4.9
  • The code change is tested and works with Tasmota core ESP32 V.2.0.2.3
  • I accept the CLA.

Add command to change timeout in RfReceive
My door bell transmiter (Quhwa/1byone) sending ~70 payload (protocol 22).
I make rule to send mqtt status, but mqtt send 2-3 times payload.
To send 1 mqtt payload i was change "RF_TIME_AVOID_DUPLICATE" and add command to can change it.
But i dont know how to save timeout. After reboot timeout change to default.

I newbee in Tasmota (((
Sorry for my English
Copy link
Contributor

@barbudor barbudor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can set the value at each reboot using a boot rule such as ON System#Boot DO RFTImeout 3000 ENDON

tasmota/xdrv_17_rcswitch.ino Outdated Show resolved Hide resolved
tasmota/xdrv_17_rcswitch.ino Outdated Show resolved Hide resolved
tasmota/xdrv_17_rcswitch.ino Outdated Show resolved Hide resolved
RF_TIME_AVOID_DUPLICATE → RfTimeToAvoidDupplicate
int RfTimeToAvoidDupplicate = 3000; → int RfTimeToAvoidDupplicate = 1000;
@Jason2866
Copy link
Collaborator

Please remove formatting style changes.

@DarkPh0eNixKrg
Copy link
Author

c

I`m newbee, pls show or write what is formatting style need remove.

@arendst
Copy link
Owner

arendst commented Mar 11, 2022

I've seen your effort and will make a more permament solution. Hold on...

arendst added a commit that referenced this pull request Mar 11, 2022
Add command to change timeout in RfReceive (#15061)
@arendst
Copy link
Owner

arendst commented Mar 11, 2022

Implemented my way. Thx.

@arendst arendst closed this Mar 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants