Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

above v1.4.0 it will not compile in a project with knolleary/PubSubClient on PlatformIO with ESP32Dev #69

Open
dominatorstang opened this issue Nov 29, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@dominatorstang
Copy link

dominatorstang commented Nov 29, 2024

I really like this library and the enhancements made above v1.4.0 sound great, along with the added PlatformIO compatibility being added on v1.5.0. Yesterday I was working on getting back into updating some of my projects and doing all the work in PlatformIO as I move forward. But I could not get my projects to compile when I add this library.

In Troubleshooting, I find that I was still using v1.4.0 with Arduino IDE so I could continue using pubsubclient with this library because I use them together on many of my projects. But I would like to try versions above 1.4.0 on my projects and use PlatformIO if there is a work around or a fix.

[env:esp32dev]
platform = espressif32
;platform = espressif32 @ 6.8.1
board = esp32dev
framework = arduino
;framework = arduino,
monitor_speed = 115200
lib_deps =
knolleary/PubSubClient@^2.8
;PubSubClient
;adafruit/Adafruit Unified Sensor@^1.1.14
;adafruit/Adafruit BME280 Library@^2.2.4
fabianoriccardi/Dimmable Light for Arduino@^1.5.0
;adafruit/Adafruit BusIO@^1.16.2
;Wire
;SPI
;mike-matera/ArduinoSTL@^1.3.3


#include <Arduino.h>
//#include <WiFi.h> // WiFi module
#include <PubSubClient.h> // MQTT
///#include <WebServer.h> // for OTA
///#include <ESPmDNS.h> // for OTA
//#include <Update.h> // for OTA
//#include <Wire.h> // for BME280
//#include <Adafruit_Sensor.h> // for BME280
//#include <Adafruit_BME280.h> // for BME280
#include <dimmable_light.h> // for Dimmer

void setup() {
// put your setup code here, to run once:
}

void loop() {
// put your main code here, to run repeatedly:
}

It gives about 80 errors with most being about things from ArduinoSTL not being declared...

  • Library version: [eg: 1.5.0 & 1.6.0]
  • Arduino core: [eg: SAMD v1.8.13]
  • Enviroment/IDE: PlatformIO
  • Dimmer board: RobotDYN
  • Board: ESP32Dev
@dominatorstang dominatorstang added the bug Something isn't working label Nov 29, 2024
@dominatorstang
Copy link
Author

sivar2311 did help me with a workaround on post https://community.platformio.org/t/multiple-arduinostl-errors-when-trying-to-move-project-from-arduino-ide/44472/5.

Move the Dimmable Light library from .pio/build/libdeps/esp32dev into the /lib folder.
Delete the library form the lib_deps in your platformio.ini
Delete the ArduinoSTL library from .pio/build/libdeps/esp32dev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant