Closed irrg closed 8 years ago
Sure. The original rcswitch code defaults to sending each code 10 times; I'll just expose its setRepeatTransmit
method and allow users to increase it if desired.
Although note that the code changes will actually be in n8henrie/node-rcswitch-gpiomem; this repo will just have a minor configuration change.
You are the best.
Give it a shot and let me know if it helps. It seems to be working for me (takes significantly longer to return when repeats
is 100 vs 10 and switches appropriately turn on and off), but I wasn't having a reliability problem in the first place, so it's hard to say for sure.
Sweet, just noticed the new NPM build, will try upgrading soon. I've got 1-2 of the etekcity outlets that are very bad at picking up the 'on'. Oddly enough their 'off' always comes through, so it's really unclear if repeats will help me here. But I figured it was worth a try!
I'm not going to jinx it, but I set repeat to 50 for the one picky outlet and so far success rate is greatly increased! More effect than adding a longer antenna, so I'll take it.
Good to hear!
Was curious if it'd be an option to repeat the signal a few times? I have a few outlets that aren't always getting the signal.