esp8266_spa icon indicating copy to clipboard operation
esp8266_spa copied to clipboard

Problems with compiling sketch

Open Steem147 opened this issue 5 years ago • 4 comments

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

Steem147 avatar Sep 01 '20 19:09 Steem147

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

cribskip avatar Sep 02 '20 01:09 cribskip

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

Michael0yodi avatar Oct 15 '20 16:10 Michael0yodi

Is this issue still valid?

cribskip avatar Feb 17 '21 17:02 cribskip

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)

srasmond avatar Mar 31 '21 22:03 srasmond