If your going to play with my branch, it is a bit messy at the present time but should compile okay
I had added a couple of other features to support my environment / setup
1 - multi wifi support and the ability to specify 2 hard coded access points
2 - Disabled Home Assistant Discovery ( I’m using home assistant auto discovery with Homebridge, and kept having my device randomly appear )
3 - Enabled mDNS discovery of Mqtt host. ie mqtt.local as the Mqtt host
I jump back and forth every week between my home and cottage and have different SSID’s and Mqtt setups etc, so tried to avoid recompiling etc and just wanted to to plug and play between locations
my prod_env settings ( I had both rtl_433 and
[env:rtl_433-9e0770]
platform = ${com.esp32_platform}
board = esp32dev
build_type = debug
monitor_filters = esp32_exception_decoder
lib_deps =
${com-esp.lib_deps}
${libraries.rc-switch}
${libraries.smartrc-cc1101-driver-lib}
${libraries.bme280}
${libraries.rtl_433_ESP}
ESPiLightDev
build_flags =
${com-esp.build_flags}
‘-Dota_password=""’
‘-DMQTT_SERVER=“mqtt.local”’
‘-DMDNS_SD=true’
‘-DESPWifiManualSetup=true’
‘-DGateway_Name=“breadboard-9e0770”’
‘-DOMG_VERSION=“cc1101”’
‘-Dwifi_ssid1=“xxxxx”’
‘-Dwifi_ssid=“xxxx”’
‘-Dwifi_password=“xxxx”’
‘-Dwifi_password1=“xxxx”’
‘-DSERIAL_BAUD=921600’
‘-DZgatewayRF=“RF”’
‘-DZgatewayRTL_433=“rtl_433”’
‘-DZgatewayPilight=“Pilight”’
‘-DZradioCC1101=“CC1101”’
‘-DZsensorBME280=“BME280”’
; ‘-DLOG_LEVEL=LOG_LEVEL_TRACE’
; ‘-DMEMORY_DEBUG=true’
; ‘-DDEMOD_DEBUG=true’
; ‘-DRTL_DEBUG=4’ ; rtl_433 verbose mode
; ‘-DRAW_SIGNAL_DEBUG=true’
‘-DRF_EMITTER_GPIO=2’
‘-DRF_RECEIVER_GPIO=4’
‘-DMY_DEVICES=true’
monitor_port = /dev/cu.SLAB_USBtoUART
upload_port = /dev/cu.SLAB_USBtoUART
upload_speed = 921600
monitor_speed = 921600