Hi,
Probably a stupid newbie question again…
I’m working with a portable environment “platform_custom_env.ini”.
I created some custom environments with my custom settings, i.e.
; --------------------------------------------------------------------------------------
; esp32-rf-custom
; --------------------------------------------------------------------------------------
[env:esp32-rf-custom]
extends = env:esp32dev-rf
lib_deps =
${env:esp32dev-rf.lib_deps}
build_flags =
${env:esp32dev-rf.build_flags}
${env:my-network.build_flags}
'-DGateway_Name="OMG-ESP32-RF-GPIO16"'
'-DRF_RECEIVER_GPIO=16'
Here I explicitly set some parameters etc…
Now I’m wondering: is it also possible to UNSET some parameters?
In my case, I want to start from the “esp32-mult_receiver” environment, and disable the CC1101 module, because the esp won’t start if the transceiver is not connected
On the terminal I can see following error:
N: WiFi ok with manual config credentials
N: RF_EMITTER_GPIO: 12
N: RF_RECEIVER_GPIO: 27
E: C1101 spi Connection Error
N: RF_EMITTER_GPIO: 12
N: RF_RECEIVER_GPIO: 27
N: RF_EMITTER_GPIO: 12
N: RF_RECEIVER_GPIO: 27
N: ZgatewayRTL_433 setup done
N: Switching to RTL_433 Receiver: 433.92Mhz
rtl_433_ESP(3): CC1101 radio.begin() failed, code: -2
My custom environment looks now like
; --------------------------------------------------------------------------------------
; esp32-multi_receiver-custom
; --------------------------------------------------------------------------------------
[env:esp32-multi_receiver-custom]
extends = env:esp32dev-multi_receiver
lib_deps =
${env:esp32dev-multi_receiver.lib_deps}
build_flags =
${env:esp32dev-multi_receiver.build_flags}
${env:my-network.build_flags}
'-DGateway_Name="OpenMQTTGateway_multi_receiver"'
'-DZgatewayPilight="Pilight"'
'-DZgatewayRF="RF"'
'-DZgatewayRTL_433="RTL_433"'
'-DZgatewayRF2="RF2"'
'-DZradioCC1101="CC1101"'
'-DvalueAsATopic=true' ; MQTT topic includes model and device (rtl_433) or protocol and id (RF and PiLight)
'-DDEFAULT_RECEIVER=4' ; Default receiver to enable on startup 1 - PiLight 2 - RF 3 - RTL_433 4 - RF2
; *** RF Module Options ***
'-DRF_CC1101="CC1101"' ; CC1101 Transceiver Module
'-DRF_MODULE_CS=5' ; pin to be used as chip select
'-DRF_MODULE_GDO0=12' ; CC1101 pin GDO0
'-DRF_MODULE_GDO2=27' ; CC1101 pin GDO2
'-DRF_MODULE_INIT_STATUS=true' ; Display transceiver config during startup
So in fact an explicit copy of the default.
But is there a possibility to DISABLE the CC1101 dependency?
kind regards,
Bart Plessers