Build Configuration
Build configuration selects what is included in the firmware: board, network transport, sensors, pins, and the hardware profile sent in messages.
It is defined by the PlatformIO environment when compiling or flashing the board.
Choose an Environment
| Hardware configuration | PlatformIO environment |
|---|---|
| Generic ESP32 + WiFi + HX711 | esp32dev_wifi_hx711 |
| ESP32-S3 Mini + WiFi + HX711 | super_mini_esp32_s3_wifi_hx711 |
| Waveshare + WiFi + HX711 | waveshare_esp32_s3_a7670e_wifi_hx711 |
| Waveshare + 4G + HX711 | waveshare_esp32_s3_a7670e_4g_hx711 |
| Waveshare + 4G + HX711, forced configuration mode | waveshare_esp32_s3_a7670e_4g_hx711_config |
Build and Flash
Example for an ESP32-S3 Mini board with WiFi and HX711:
bash
# Check that the firmware builds for this target.
pio run -e super_mini_esp32_s3_wifi_hx711
# Build and flash the board connected over USB.
pio run -e super_mini_esp32_s3_wifi_hx711 -t uploadKeep Secrets Out of the Build
Secrets should not be hardcoded in the build configuration. Flash the firmware without scale tokens, WiFi passwords, or SIM PINs.
These values are set later with runtime configuration, after the firmware has been installed.