; example custom platformio ini file for EMS-ESP [common] ; custom build flags to use in my_build_flags ; -DEMSESP_UART_DEBUG ; debugging UART ; -DEMSESP_DEBUG ; enables DEBUG to the log. Will generate a lot of extra traffic on Console and Syslog ; -DEMSESP_DEFAULT_BOARD_PROFILE=\"NODEMCU\" ; hard code the default board name ; -DEMSESP_DEBUG_SENSOR ; additional debug for the sensors ; -DCORE_DEBUG_LEVEL=5 ; verbose core level debugging 5=verbose, 4=debug, 3=info ; -DEMSESP_TEST ; enable the tests. EN language only ; -DEMSESP_DE_ONLY ; only DE translated entity names ; -DEMSESP_EN_ONLY ; only EN translated entity names ; -DEMSESP_PINGTEST ; send log message every 1/2 second ; my_build_flags = -DEMSESP_TEST -DEMSESP_DEBUG ; my_build_flags = -DEMSESP_DEBUG -DEMSESP_TEST -DEMSESP_PINGTEST ; my_build_flags = -DEMSESP_DEBUG -DCORE_DEBUG_LEVEL=5 my_build_flags = [platformio] ; default_envs = s_16M_P ; BBQKees E32V2 default_envs = s3_16M_P ; BBQKees S3 [env] ; uncomment this section to enable extra debug ; build_type = debug ; monitor_filters = colorize, esp32_exception_decoder ; customize the scripts extra_scripts = ; pre:scripts/build_interface.py ; builds the WebUI (unless NO_BUILD_WEBUI is set) - comment out if you don't want to build each time ; scripts/rename_fw.py ; renames the firmware .bin file - comment out if not needed scripts/upload.py ; optionally upload the firmware via OTA (must have upload_protocol = custom) ; set the username and password for the admin account (default password is admin) custom_username = admin custom_password = admin ; ** upload settings ** ; for direct USB, which is the default you can set an optional port for example: ; upload_port = /dev/ttyUSB0 or COM3 ; ; for direct via HTTP (OTA) set: ; upload_protocol = custom ; custom_emsesp_ip = or ems-esp.local upload_protocol = custom custom_emsesp_ip = 10.10.10.93 ; S3 ; custom_emsesp_ip = 192.168.1.225 ; E32V2 ; ** debug settings ** ; to be used with esp-prog/JTAG hardware device like https://docs.espressif.com/projects/esp-dev-kits/en/latest/other/esp-prog/user_guide.html ; pio run -e debug ; add to build_flags these additional options: EMSESP_DEBUG EMSESP_UART_DEBUG EMSESP_DEBUG_SENSOR [env:debug] board = esp32dev framework = arduino platform = espressif32 board_build.partitions = partitions/esp32_partition_debug.csv board_upload.flash_size = 4MB board_build.filesystem = littlefs upload_protocol = esptool build_type = debug monitor_raw = no monitor_filters = esp32_exception_decoder debug_tool = esp-prog debug_init_break = tbreak setup build_flags = ${factory_settings.build_flags} -DEMSESP_EN_ONLY -DCORE_DEBUG_LEVEL=5 -DONEWIRE_CRC16=0 -DNO_GLOBAL_ARDUINOOTA -DARDUINOJSON_ENABLE_STD_STRING=1 -DESP32=1 -DARDUINO_ARCH_ESP32=1 upload_port = /dev/ttyUSB0 extra_scripts = scripts/rename_fw.py post:scripts/app-tls-size.py