selfhostedhome / smart-bed-sensor

DIY Smart Bed using Load Cells and HX711
MIT License
11 stars 10 forks source link

errors when building #1

Closed bachoo786 closed 5 years ago

bachoo786 commented 5 years ago

Hello

I am using your code in atom platformio and I am trying to build it. However I get the following errors:

src\main.cpp:12:13: error: 'HX711_DT' was not declared in this scope
HX711 scale(HX711_DT, HX711_SCK);
^
src\main.cpp:12:23: error: 'HX711_SCK' was not declared in this scope

HX711 scale(HX711_DT, HX711_SCK);
^
src\main.cpp: In function 'void reconnect()':
src\main.cpp:19:28: error: 'HOSTNAME' was not declared in this scope
if (client.connect(HOSTNAME)) {

Can you please help?

Thanks.

bachoo786 commented 5 years ago

ok found the problem.

In main.cpp you have to include the config_template.h

zlalanne commented 5 years ago

Ahh sorry, I need to add a README to this. I meant for people to rename config_template.h to config.h before getting started