Commit Graph
24 Commits
Author SHA1 Message Date
taco c10ea278ff tidy: remove old commented Bluefruit.autoConnLed(false) 2026-10-02 07:40:42 +10:00
taco ec565e06bf fix bad comment format 2026-10-02 07:35:34 +10:00
Bill Plein 5ee9758b75 Allow for build-time macro to disable the bluetooth LED
Several variants use one or another method to disable the bluetooth LED that is grabbed by the Adafruit Bluefruit library by default. This allows for single build_flags macro to control the behavior (default behavior if not defined, not auto-controlled by Bluefruit if defined). This would open up for future cases where this could be controlled via a CLI command or by an application.

Does not change behavior if the flag is not defined.
2026-08-07 17:51:01 -05:00
liamcottle 97f40e29f1 bleuart service stay registered first to prevent gatt cache issues on android when already paired 2026-04-18 14:43:47 +12:00
txkbaldlaw 474b60c2d5 Add DFU to BLE Stack 2026-04-16 16:04:30 -05:00
Wessel Nieboer 6047d6a615 Prevent auto-restarting BLE when disabling it on nRF52
If client is still connected, client would automatically reconnect
immediately thus keeping BLE on

fixes #1933
2026-03-10 14:31:58 +01:00
Scott Powell bce64a57f9 * T1000e BLE - default node name is now the MAC address 2026-01-23 15:53:58 +11:00
liquidraver 26d3849281 queue throttling + slave latency and minor refactor 2025-12-17 13:46:58 +01:00
liquidraver ebe6618b48 Improve SerialBLEInterface 2025-12-05 07:39:48 +01:00
liamcottle 844849c402 revert unexpected change to ble advertising interval on nrf52 2025-09-15 13:06:35 +12:00
liamcottle b7c8db1989 don't mark as connected until connection secured 2025-09-12 20:23:21 +12:00
ViezeVingertjes 09152dc0d4 Replaced BLE_LOW_POWER with BLE_TX_POWER & updated usages. 2025-09-07 15:44:24 +02:00
ViezeVingertjes 3efba2cfe1 Few adjustments after testing. 2025-09-07 14:08:53 +02:00
ViezeVingertjes 7de301374c Updated BLE functionality for low power mode in SerialBLEInterface. Updated platformio.ini to enable low power mode and added DC/DC converter support in T1000eBoard for improved power efficiency. 2025-09-05 10:46:51 +02:00
Scott Powell 97ecc1cb00 * RAK_4631: ui-new 2025-08-17 16:49:08 +10:00
Scott Powell e9ba5be910 * UI revamp for companion radios 2025-08-08 20:01:31 +10:00
liamcottle 72ffaeed35 refactor nrf52 ble to use callbacks 2025-07-07 16:36:55 +12:00
Lloyd e4ac3a7d39 Manually restart BLE advertising after disconnect to prevent stack freeze
Replaced use of `restartOnDisconnect(true)` with explicit (existing) manual re-advertising logic.
This avoids Bluetooth stack instability caused by overlapping advertising state,
Changes:
- Added explicit `Bluefruit.Advertising.stop()` and data clears in `startAdv()`
- Disabled automatic restart with `restartOnDisconnect(false)`
- Re-advertising now fully handled in `checkRecvFrame()` loop

Tested on: iPhone, Android, Windows, and Chrome – confirmed stable reconnects and name visibility.
2025-07-04 21:07:55 +01:00
Lloyd 10d455b1d8 BLE: Remove ScanResponse.addName() to fix re-advertising after disconnect
Removed the call to Bluefruit.ScanResponse.addName() in startAdv(), as it was preventing BLE from reliably restarting advertising after a disconnect.

Hypothesis: adding the device name to the scan response exceeds internal buffer limits or causes a conflict with advertising timing, leading to the BLE stack silently failing to re-advertise.

Tested successfully (on T-1000) without this line, advertising now resumes correctly after disconnection (on Iphone)
2025-07-02 23:41:31 +01:00
Scott Powell 5de2f0edad * BLE_WRITE_MIN_INTERVAL upped to 60 millis 2025-05-17 19:54:31 +10:00
liamcottle e232b1ce12 enforce pin being used for ble pairing on nrf52 2025-02-26 17:27:58 +13:00
Scott Powell d350a7c341 * nrf52 BLE, increased MTU to 250 2025-02-13 20:22:56 +11:00
Florent de36c12362 nrf52 ble uart should work 2025-02-12 17:44:06 +01:00
Scott Powell fc075ecaa5 * companion radio for RAK (USB) now fixed. (thanks to Bernd Giesecke)
* experimental NRF52 impl of SerialBLEInterface, and experimental RAK BLE companion radio target
2025-02-12 18:40:00 +11:00