Compiling sketch issue
Vacxe opened this issue · comments
Steps to reproduce:
Just trying to compile example from InfluxDb
Actual behavior:
In file included from /Users/vacxe/Documents/Arduino/sketch_mar07c/sketch_mar07c.ino:11:0:
/Users/vacxe/Documents/Arduino/libraries/InfluxDB-Client-for-Arduino-3.11.0/src/InfluxDbClient.h:209:21: error: 'virtual int InfluxDBClient::BatchStreamer::availableForWrite()' marked override, but does not override
virtual int availableForWrite() override;
^
/Users/vacxe/Documents/Arduino/libraries/InfluxDB-Client-for-Arduino-3.11.0/src/InfluxDbClient.h:213:21: error: 'virtual int InfluxDBClient::BatchStreamer::read(uint8_t*, size_t)' marked override, but does not override
virtual int read(uint8_t* buffer, size_t len) override;
Specifications:
- Library Version: 3.11
- InfluxDB Version:
- Board/ESP chip:
- Device Arduino SDK version:
You didn't write which device you have and which version of Arduino Core for it.
Most probably you have an obsolete version of the Arduino Core for the device.
@vlastahajek using this one https://heltec.org/project/wifi-kit-8/
Hello, I had similar error messages in the BasicWrite Example with Heltec Wireless Stick: https://heltec.org/project/wireless-stick/
Solution was to update the Arduino Core in the Board Manager! In my case it was ESP32, probably you need ESP8266.
This is what I got before the update:
Using board 'heltec_wireless_stick' from platform in folder: C:\Users\xxx\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.2
Using core 'esp32' from platform in folder: C:\Users\xxx\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.2
...
In file included from C:\Users\xxx\Arduino\libraries\InfluxDB-Client-for-Arduino-master\examples\BasicWrite\BasicWrite.ino:21:0:
C:\Users\xxx\Arduino\libraries\InfluxDB-Client-for-Arduino-master\src/InfluxDbClient.h:210:21: error: 'virtual int InfluxDBClient::BatchStreamer::availableForWrite()' marked 'override', but does not override
virtual int availableForWrite() override;
^
C:\Users\xxx\Arduino\libraries\InfluxDB-Client-for-Arduino-master\src/InfluxDbClient.h:216:24: error: 'virtual size_t InfluxDBClient::BatchStreamer::readBytes(char*, size_t)' marked 'override', but does not override
virtual size_t readBytes(char* buffer, size_t len) override;
...
exit status 1
Error compiling for board Heltec Wireless Stick.
Afterwards, the errors were gone. Maybe this helps.
Regards, R41K
As I wrote above. You need to update ESP32 Arduino Core. Version 1.0.2 is ancient.
As I wrote above. You need to update ESP32 Arduino Core. Version 1.0.2 is ancient.
Yes I saw that. Just wanted to highlight that you do this via Board Manager. Not sure if this is obvious.
@vlastahajek @R41K thanks a lot