Skip to content

Disable BLE_PIN_CODE for E290 companion USB environment#2565

Merged
liamcottle merged 2 commits into
meshcore-dev:devfrom
willumpie82:ble-pin-code
May 15, 2026
Merged

Disable BLE_PIN_CODE for E290 companion USB environment#2565
liamcottle merged 2 commits into
meshcore-dev:devfrom
willumpie82:ble-pin-code

Conversation

@willumpie82
Copy link
Copy Markdown

Description

Remove the hardcoded BLE_PIN_CODE build flag from the Heltec_E290_companion_usb environment. The presence of BLE_PIN_CODE prevents the unit from operating as a USB companion. Commenting it out enables USB companion functionality.

Changes

  • Comment out -D BLE_PIN_CODE=123456 in variants/heltec_e290/platformio.ini

Impact

This allows the E290 unit to function properly as a USB companion device by removing the hardcoded PIN restriction.

Remove the hardcoded BLE_PIN_CODE build flag from the Heltec_E290_companion_ble
environment. The presence of BLE_PIN_CODE prevents the unit from operating as a
USB companion. Commenting it out allows dynamic PIN generation and enables USB
companion functionality.
@liamcottle
Copy link
Copy Markdown
Member

Thanks! I'm not sure if the hash acts as a comment in the .ini file, and if it is required to be the semi colon. Would be best to just remove the line entirely from the USB variant :)

@willumpie82
Copy link
Copy Markdown
Author

you are right, that line does not belong there, so completely removed now

side note: I flashed my HT E290 earlier today with the line removed and i'm now able to connect over USB (using as Homeassistant proxy)

@liamcottle
Copy link
Copy Markdown
Member

Awesome, thanks! Will merge in :)

@liamcottle liamcottle merged commit cf9bf1d into meshcore-dev:dev May 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants