Skip to content

Commit

Permalink
Moved sMQTTBroker dependency to wokwi environment only
Browse files Browse the repository at this point in the history
  • Loading branch information
PBrunot committed Aug 8, 2024
1 parent 03c3ea6 commit 50c7455
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 3 additions & 2 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,10 @@ lib_ldf_mode = deep
lib_deps = https://github.com/PBrunot/LiquidCrystal.git#use_const
https://github.com/bblanchon/ArduinoJson.git#v7.1.0
256dpi/MQTT
https://github.com/OSSLibraries/Arduino_MFRC522v2.git#2.0.4
https://github.com/OSSLibraries/Arduino_MFRC522v2.git#2.0.5
Wire
adafruit/Adafruit NeoPixel@^1.12.3
https://github.com/tzapu/[email protected]
https://github.com/terrorsl/[email protected]
ArduinoOTA
build_unflags = -std=gnu++11 -fexceptions
build_flags = -std=gnu++2b
Expand Down Expand Up @@ -98,6 +97,8 @@ upload_port = 192.168.45.82

[env:wokwi]
board = esp32-s2-saola-1
lib_deps = ${env.lib_deps}
https://github.com/terrorsl/[email protected]
build_type = debug
build_src_flags = ${env.build_src_flags}
-D MQTT_SIMULATION=true
Expand Down
4 changes: 4 additions & 0 deletions src/mock/MockMQTTBroker.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#if (MQTT_SIMULATION)

#include "mock/MockMQTTBroker.hpp"
#include "Logging.hpp"
#include "conf.hpp"
Expand Down Expand Up @@ -250,3 +252,5 @@ namespace fabomatic
}
}
} // namespace fabomatic

#endif // #if (MQTT_SIMULATION)

0 comments on commit 50c7455

Please sign in to comment.