SK
Signal K4w ago
Ed

Ed - I'm trying to rebuild a V2 project to V3....

I'm trying to rebuild a V2 project to V3. But starting with the template I cloned I have two problems: 1. Had to change the upload_speed in platformio.ini from 2000000 to 115200 or it just would fail to upload. 2. error during build:
In file included from .pio/libdeps/esp32dev/SensESP/src/sensesp/sensors/analog_input.h:5,
from src/main.cpp:14:
.pio/libdeps/esp32dev/SensESP/src/sensesp/sensors/analog_reader.h:28:30: error: 'ADC_ATTEN_DB_12' was not declared in this scope
adc_atten_t attenuation_ = ADC_ATTEN_DB_12;
^~~~~~~~~~~~~~~
.pio/libdeps/esp32dev/SensESP/src/sensesp/sensors/analog_reader.h:28:30: note: suggested alternative: 'ADC_ATTEN_DB_11'
adc_atten_t attenuation_ = ADC_ATTEN_DB_12;
^~~~~~~~~~~~~~~
ADC_ATTEN_DB_11
In file included from .pio/libdeps/esp32dev/SensESP/src/sensesp/sensors/analog_input.h:5,
from src/main.cpp:14:
.pio/libdeps/esp32dev/SensESP/src/sensesp/sensors/analog_reader.h:28:30: error: 'ADC_ATTEN_DB_12' was not declared in this scope
adc_atten_t attenuation_ = ADC_ATTEN_DB_12;
^~~~~~~~~~~~~~~
.pio/libdeps/esp32dev/SensESP/src/sensesp/sensors/analog_reader.h:28:30: note: suggested alternative: 'ADC_ATTEN_DB_11'
adc_atten_t attenuation_ = ADC_ATTEN_DB_12;
^~~~~~~~~~~~~~~
ADC_ATTEN_DB_11
1 Reply
Ed
EdOP4w ago
After running pio lib update problems was solved.

Did you find this page helpful?