• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

RF Transmitter Solution

Q&A Forum › Category: Arduino › RF Transmitter Solution
0 Vote Up Vote Down
TekMason asked 7 years ago

Shortly after submitting the RF Transmitter Problem I found the Solution
As explained in rc-switch on github issues:

You have to use setPulseLength() after calling setProcotol(). Otherwise the pulse length value gets reset to default when you set the protocol.

Rui,
I have modified the code at your github and created a pull request https://github.com/RuiSantosdotme/Home-Automation-Course/pull/1
Cheers,
TekMason
PS.  Sorry about the second thread for this one.  I learned the hard way, don’t mark an issue closed when you are creating a reply.  If you do it will wipe out your reply and prevent you from ever replying to the topic.

Question Tags: RF Transmitter
1 Answers
0 Vote Up Vote Down
Rui Santos Staff answered 7 years ago

No problem! Thanks for letting me know and for the pull request.
I’ve accepted the pull request and I’ve updated all the other examples: https://github.com/RuiSantosdotme/Home-Automation-Course/tree/master/code/v2
Since all my RF remote controlled sockets use the protocol 1, even though I was setting it in the wrong order I’ve never experienced that error.
Thanks again,
Rui

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.