cribskip / esp8266_spa

Control for a Balboa BP2100G0 spa controller using the esp8266
47 stars 20 forks source link

Problems with compiling sketch #3

Open Steem147 opened 4 years ago

Steem147 commented 4 years ago

Best cribskip,

I have the following problem when trying to compile the sketch. I have add the circularbuffer and also the pubsubclient, i have selected the ESP8266 Wemos D1 R1.

The following is the compiler log:

/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/> esp8266_spa.ino: In function 'void loop()': esp8266_spa:252:16: error: 'ID_ack' was not declared in this scope ID_ack(); ^ esp8266_spa:258:20: error: 'ID_request' was not declared in this scope ID_request(); ^ esp8266_spa:278:20: error: 'rs485_send' was not declared in this scope rs485_send(); ^ exit status 1 'ID_ack' was not declared in this scope />/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>

What could be the problem?

Best regards,

Steem

cribskip commented 4 years ago

Hey Steem,

those functions are in balboa_helpers.ino.

Did you put the file beside the main ino file? What version of arduino ide and esp8266 sdk are you using?

Best, Sascha

Michael0yodi commented 4 years ago

Create a new folder and copy both *.ino files there and open the esp8266_spa.ino in Arduino IDE via File -> open and add the "balboa_helper.ino" file via Sketch -> Add File it will read it and compile just fine

cribskip commented 3 years ago

Is this issue still valid?

srasmond commented 3 years ago

I followed the instruction of Michael0yodi as well (for a Lolin (WeMos) D1 Mini Pro) and it worked for me. So I think the issue is resolved when following this procedure. In addition, for Mac users, the following might be intresting when encountering upload issues with Arduino IDE: https://forum.arduino.cc/index.php?topic=702144.0 (comment of "juanssl" provides the fix)