adafruit / Adafruit_IO_Arduino

Arduino library to access Adafruit IO from WiFi, cellular, and ethernet modules.
Other
212 stars 107 forks source link

Sketch not compiling after library upgrade #53

Closed labomat closed 6 years ago

labomat commented 6 years ago

After updating the library to v 2.7.11 I got multiple compilation errors with my sketch:

...\libraries\Adafruit_IO_Arduino\src\blocks\MapBlock.cpp: In member function 'virtual String MapBlock::properties()': ... \libraries\Adafruit_IO_Arduino\src\blocks\MapBlock.cpp:26:3: error: expected ')' before '{' token { ^ ...\libraries\Adafruit_IO_Arduino\src\blocks\MapBlock.cpp:31:3: error: 'props' was not declared in this scope props += historyHours;

Full sketch code: https://github.com/labomat/Pflanzenwaechter/blob/devel/Feuchtesensor_IoT.ino

brentru commented 6 years ago

Hi @labomat! 2.7.11 should have patched the mapblock problem, I'll look into this.

brentru commented 6 years ago

Release 2.7.12 patches this issue. I'm leaving this open until the library manager picks it up and I verify it's patched.

labomat commented 6 years ago

The patch removed the first error but not the second.

...\libraries\Adafruit_IO_Arduino\src\blocks\MapBlock.cpp:31:3: error: 'props' was not declared in this scope props += historyHours;

brentru commented 6 years ago

Weird, my compiler didn't register that error until I did an application restart. Must've been using a cached version of the library...

brentru commented 6 years ago

Ok, patched/pulled in/released. Let me know if you're continuing to have issues.

labomat commented 6 years ago

Looks good - thanks for your help!

brentru commented 6 years ago

@labomat Happy to help.

Closing....