blynkkk / blynk-library

Blynk library for IoT boards. Works with Arduino, ESP32, ESP8266, Raspberry Pi, Particle, ARM Mbed, etc.
https://blynk.io
MIT License
3.81k stars 1.38k forks source link

Fixes blynkkk/blynk-library#439 #551

Closed jpasqua closed 2 years ago

jpasqua commented 2 years ago

Description

The definition of the Blynk object in the header files leads to "already defined" linker errors if more than one module includes the header. often this is avoided in Arduino sketches because of the "peculiar" way that the Arduino IDE munges together source files into a single translation unit, but it is fairly easy to stumble over with a non-trivial sketch. I made the changes mechanically across the code base, but am only able to test with ESP32 and ESP8266.

Issues Resolved

Fixes #439