• 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

mySwitch.setProtocol(REPLACE_WITH_YOUR_PROTOCOL);

Q&A Forum › Category: Home Automation › mySwitch.setProtocol(REPLACE_WITH_YOUR_PROTOCOL);
0 Vote Up Vote Down
Peter Michaelis asked 3 months ago

Hallo Rui,
I am working through the chapters of the book “Build a Home Automation System for $100”! and I have now come to the program on page 137. Here is the problem that I receive the error message
mySwitch.setProtocol(REPLACE_WITH_YOUR_PROTOCOL);
So far I don’t have a remote control system. Is there a solution to the problem even without remote control hardware?
thanks for any suggestion
best regards / Peter

3 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 3 months ago

Hi Peter.
 
I’m not sure that I understand your question. As mentioned in the eBook, you can use: mySwitch.setProtocol(1);
 
But, what do you mean that “you don’t have a remote system”?. Do you have the components to build the project? If not, you can compile the project, but nothing will happen after that.
 
I just like to remind you that the “Build a Home Automation System for 100$” eBook is currently deprecated, which means some projects are outdated and we won’t update that eBook anymore.
We have a new eBook that covers similar subjects (but more updated). But because all chapters and the structure are completely new, that’s a whole new eBook instead of a new edition.
 
Regards,
Sara

0 Vote Up Vote Down
Lola Michaelis answered 3 months ago

Hello Sara,
thank you for your fast answer. i don’t have a remote system like the one shown on page 117 yet. So I don’t have any binary codes as shown on page 134 either. When I upload the program on page 137, the error message REPLACE_WITH_YOUR_PROTOCOL was not declared in this scope. Too bad the ebook is no longer updated. And what’s the name of the new e-book? is it the Smart_Home_Raspberry_Pi_ESP32_ESP8266_V_1_1? Which NodeRed version is used in this book?
I am using Version 3.0.2 which is rather different.
Thanks in advance for answering my questions
best regards and thank you again

Peter

0 Vote Up Vote Down
Sara Santos Staff answered 3 months ago

Hi.
You can’t run that code without having the binary codes…
We won’t update that eBook anymore, however, many of the code will still work, or will need some small changes. Additionally, the Node-RED interface might look a bit different and some widgets on Node-RED are no longer available.
 
The new eBook is this one: https://randomnerdtutorials.com/smart-home-ebook/
Regards,
Sara

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

  • [eBook Updated] SMART HOME with RPi, ESP32, and ESP8266 (version 1.2) March 8, 2023
  • [eBook Updated] ESP32-CAM Projects (version 1.3) January 7, 2023

You must be logged in to view this content.

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

Copyright © 2013-2023 · 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.