It’s all in prod_env.ini. I get the same result whether or not I copy the lilygo-rtl_433 env here or just let it pull from environments.ini.
; Build overrides
[platformio]
; without the following EVERYTHING gets built
default_envs = lilygo-rtl_433
; exact copy of lilygo-rtl_433 from environments.ini
platform = ${com.esp32_platform}
board = ttgo-lora32-v21
; ~/.platformio/packages/framework-arduinoespressif32/variants/…/pins_arduino.h
board_build.partitions = min_spiffs.csv
lib_deps =
${com-esp.lib_deps}
${libraries.wifimanager32}
${libraries.ssd1306}
${libraries.rtl_433_ESP}
build_flags =
${com-esp.build_flags}
; *** OpenMQTTGateway Config ***
;‘-UZmqttDiscovery’ ; disables MQTT Discovery
‘-DvalueAsATopic=true’ ; MQTT topic includes model and device
‘-DGateway_Name=“OpenMQTTGateway_lilygo_rtl_433_ESP”’
; *** OpenMQTTGateway Modules ***
‘-DZgatewayRTL_433=“rtl_433”’
‘-DZradioSX127x=“SX127x”’
; *** ssd1306 Display Options ***
‘-DZdisplaySSD1306=“LilyGo_SSD1306”’
; ‘-DLOG_TO_LCD=true’ ; Enable log to LCD
; ‘-DJSON_TO_LCD=true’
; ‘-DLOG_LEVEL_LCD=LOG_LEVEL_NOTICE’
; ‘-DDISPLAY_IDLE_LOGO=false’
; ‘-DDISPLAY_METRIC=false’
custom_description = For ESP32, Gateway using RTL_433_ESP and RadioLib
custom_hardware = ESP32 LILYGO LoRa32 V2.1
; my local defines
‘-DGateway_Name=“OpenMQTTGateway”’
‘-DESPWifiManualSetup=true’
‘-Dwifi_ssid=“XXXX”’
‘-Dwifi_password=“XXXXXXXXXX”’
‘-DMQTT_SERVER=“10.1.10.23”’
‘-DMQTT_USER=“XXXXXX”’
‘-DMQTT_PASS=“XXXXXXXX”’
‘-DMQTT_PORT=“1883”’