Compiling MeshCore Firmware with Wi-Fi Enabled¶
Device: Heltec V3
OS: Red Hat 9.6
Note:
Wi-Fi support in MeshCore is experimental.
Your SSID and password are embedded at compile time, so do not share compiled binaries that contain your real credentials.
Install PlatformIO¶
-
Change to your home directory:
bash cd ~ -
Download the PlatformIO installer:
bash curl -fsSL -o get-platformio.py https://raw.githubusercontent.com/platformio/platformio-core-installer/master/get-platformio.py -
Run the installer:
bash python3 get-platformio.py -
Add PlatformIO to your PATH (adjust the path if your username is different):
bash export PATH=$PATH:/home/linuxuser/.platformio/penv/bin
Clone the MeshCore Repository¶
-
Clone the MeshCore repo:
bash git clone https://github.com/ripplebiz/MeshCore.git -
Change into the project directory:
bash cd MeshCore/
Configure Wi-Fi Credentials¶
-
Open the PlatformIO configuration for the Heltec V3 Wi-Fi build:
bash vi variants/heltec_v3/platformio.ini -
Locate the
env:Heltec_v3_companion_radio_wifisection and update it with your SSID and password:
[env:Heltec_v3_companion_radio_wifi]
extends = Heltec_lora32_v3
build_flags =
${Heltec_lora32_v3.build_flags}
-D MAX_CONTACTS=100
-D MAX_GROUP_CHANNELS=8
-D DISPLAY_CLASS=SSD1306Display
-D WIFI_DEBUG_LOGGING=1
-D WIFI_SSID="<<SSID>>"
-D WIFI_PWD="<<WIFI-PASS>>"
- Save and exit the editor.
Compile and Prepare Firmware¶
-
Set the firmware version environment variable:
bash set FIRMWARE_VERSION=1.7.3(Or use
export FIRMWARE_VERSION=1.7.3if you are using a pure Linux shell and not a mixed environment.) -
Build the Wi-Fi firmware target:
bash ./build.sh build-firmware Heltec_v3_companion_radio_wifi -
Change into the build output directory:
bash cd .pio/build/Heltec_v3_companion_radio_wifi/ -
Rename the output binaries:
bash mv firmware-merged.bin Heltec_v3_companion_radio_wifi_1.7.3-merged.bin mv firmware.bin Heltec_v3_companion_radio_wifi_1.7.3.bin -
Move the generated firmware files to a convenient location (example):
bash mv Heltec_v3_companion_radio_wifi* /home/linuxuser/
Next Steps¶
-
Flash one of the compiled firmware files onto your Heltec V3:
Heltec_v3_companion_radio_wifi_1.7.3.bin- or
Heltec_v3_companion_radio_wifi_1.7.3-merged.bin
-
Connect to the device over serial and monitor logs to confirm:
- Wi-Fi is enabled
- The device is attempting to associate with your SSID
-
Remember that Wi-Fi support in MeshCore is experimental:
- Expect instability
- Features may be incomplete
- Do not deploy this build as a critical node on the mesh