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
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
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
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