Closed maxgerhardt closed 3 years ago
Actually this issue can be resolved. The offending code is
long asLong() const { return atol(buff); }
#ifndef BLYNK_NO_LONGLONG
long long asLongLong() const { return atoll(buff); }
#endif
and long long
is a really bad idea on an 8-bit microcontroller, so if I add build_flags = -D BLYNK_NO_LONGLONG
in the platformio.ini
to disable the code, it compiles.
To prevent compilation failures on Atmel chips, this should be the default? Can be checked with #if defined(__AVR__)
too.
Thanks for reporting!
Yes, currently defining BLYNK_NO_LONGLONG
is a proper solution. We will try to improve the auto-detection anyway!
Please update to 0.6.7 (should be available in PIO soon)
Confirmed works with just lib_deps = blynkkk/Blynk@0.6.7
and no build_flags
. Also, the new version is now visible in https://platformio.org/lib/show/415/Blynk 😄
Blynk library version: 0.6.5 IDE: [Arduino/Energia/MBED Compiler/Platform.IO/Eclipse ...]: PlatformIO IDE version: Core 5.0.4b1 Board type:
diecimilaatmega168
Additional modules:Scenario, steps to reproduce
Compile a sketch that worked in the previous library version.
Expected Result
Successful compilation.
Actual Result
Compilation failure with
among otherst (see below)
Compilation details
Use the
platformio.ini
And code
compilation works
now delete
.pio\libdeps
folder and changelib_deps
declaration toand you encounter