diff --git a/platformio.ini b/platformio.ini index 18042fe..1bd4c0f 100644 --- a/platformio.ini +++ b/platformio.ini @@ -20,6 +20,11 @@ extra_configs = ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;Uncomment the env line corresponding to your board and modules required, ; ;you can also adapt the modules by removing the corresponding lines in the env detail ; +; if you go to the build flag section of your env you will see that some user_config.h ; +; parameters can be overwritten here, for example the gateway name. ; +; If you want to avoid the lost of your environments at each update you can put them ; +; into a separate file called prod_env.ini, it will be automatically read by pio ; +; an example (prod_env.ini.example) is available into the same folder as this file. ; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;default_envs = sonoff-basic-rfr3 diff --git a/prod_env.ini.example b/prod_env.ini.example new file mode 100644 index 0000000..e11ef58 --- /dev/null +++ b/prod_env.ini.example @@ -0,0 +1,43 @@ +[platformio] +default_envs = + esp32dev-ble-1 + esp32dev-ble-2 + +;esp32 1 +[env:esp32dev-ble-1] +platform = ${com.esp32_platform} +board = esp32dev +board_build.partitions = min_spiffs.csv +lib_deps = + ${com-esp.lib_deps} + ${libraries.ble} +build_flags = + ${com-esp.build_flags} + '-DZgatewayBT="BT"' + '-DGateway_Name="OpenMQTTGateway_ESP32_1"' +upload_protocol = espota +upload_port = 192.168.1.82 +upload_flags = + --auth=OTAPASSWORD +upload_speed = 512000 +monitor_speed = 115200 + +;esp32 2 +[env:esp32dev-ble-2] +platform = ${com.esp32_platform} +board = esp32dev +board_build.partitions = min_spiffs.csv +lib_deps = + ${com-esp.lib_deps} + ${libraries.ble} +build_flags = + ${com-esp.build_flags} + '-DZgatewayBT="BT"' + '-DGateway_Name="OpenMQTTGateway_ESP32_2"' + ;-DCORE_DEBUG_LEVEL=4 +upload_protocol = espota +upload_port = 192.168.1.111 +upload_flags = + --auth=OTAPASSWORD +upload_speed = 512000 +monitor_speed = 115200