Mqtt parameters not saved from the web interface

Hello,

For a specific need and context I need to set a fixed IP directly on my esp32. To do this, I use a custom image and I slightly modified the environments.ini file. Everything seems to be going well, however when I try after installation to modify the mqtt parameters the modifications do not apply.

[env:esp32dev-ble]
platform = ${com.esp32_platform}
board = esp32dev
board_build.partitions = min_spiffs.csv
lib_deps =
${com-esp32.lib_deps}
${libraries.ble}
${libraries.decoder}
build_flags =
${com-esp32.build_flags}
‘-DZgatewayBT=“BT”’
‘-DLED_SEND_RECEIVE=2’
‘-DLED_SEND_RECEIVE_ON=0’
‘-DGateway_Name=“OMG_ESP32_BLE”’
‘-DNetworkAdvancedSetup=true’
‘-DESPWifiManualSetup=true’
‘-DNET_IP=“10.0.0.100”’
‘-DNET_MASK=“255.255.255.0”’
‘-DNET_GW=“10.0.0.254”’
‘-DNET_DNS=“10.0.0.254”’
‘-Dwifi_ssid=““’
'-DMQTT_SERVER=”
”’
‘-UMQTT_HTTPS_FW_UPDATE’
‘-DMQTT_PORT=“1883”’
‘-DMQTT_USER=“user”’
‘-Dgw_password=“***********”’
‘-DMQTT_PASS=“”’
‘-Dwifi_password=“**********”’

After several tests and research (I tried another method using User_config.h but also unsuccessful) I think that the phenomenon is caused by the “ESPWifiManualSetup” parameter which is, I think, essential to my config.

Do you have any advice or suggestions that could help me resolve this problem? Thank you so much :slight_smile:

Hello,

When using this parameters all the network settings are defined at buildtime. This is why you can’t change them.

1 Like

Ok, thank you for this clarification :slight_smile: