Commit Graph
24 Commits
Author SHA1 Message Date
taco 0e1ba7102d tidy: remove old commented Bluefruit.autoConnLed(false) 2026-10-02 07:40:42 +10:00
taco 35e10a9c75 fix bad comment format 2026-10-02 07:35:34 +10:00
Bill Plein fe72d0321a 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 cfe4b0b9a5 bleuart service stay registered first to prevent gatt cache issues on android when already paired 2026-04-18 14:43:47 +12:00
txkbaldlaw b898e7a04e Add DFU to BLE Stack 2026-04-16 16:04:30 -05:00
Wessel Nieboer e3afbf975e 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 3c27132914 * T1000e BLE - default node name is now the MAC address 2026-01-23 15:53:58 +11:00
liquidraver cba29ea50c queue throttling + slave latency and minor refactor 2025-12-17 13:46:58 +01:00
liquidraver 73ab0d8813 Improve SerialBLEInterface 2025-12-05 07:39:48 +01:00
liamcottle 400e09f318 revert unexpected change to ble advertising interval on nrf52 2025-09-15 13:06:35 +12:00
liamcottle 25ea953cc3 don't mark as connected until connection secured 2025-09-12 20:23:21 +12:00
ViezeVingertjes 5370667bd8 Replaced BLE_LOW_POWER with BLE_TX_POWER & updated usages. 2025-09-07 15:44:24 +02:00
ViezeVingertjes 7363a4f67d Few adjustments after testing. 2025-09-07 14:08:53 +02:00
ViezeVingertjes 963556f9ba 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 fe376e8c35 * RAK_4631: ui-new 2025-08-17 16:49:08 +10:00
Scott Powell 4b95c981bb * UI revamp for companion radios 2025-08-08 20:01:31 +10:00
liamcottle 67f9204e88 refactor nrf52 ble to use callbacks 2025-07-07 16:36:55 +12:00
Lloyd d32fa5c004 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 ec98d5f8a5 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 436a99f088 * BLE_WRITE_MIN_INTERVAL upped to 60 millis 2025-05-17 19:54:31 +10:00
liamcottle dbc9659e9a enforce pin being used for ble pairing on nrf52 2025-02-26 17:27:58 +13:00
Scott Powell cd9b60495d * nrf52 BLE, increased MTU to 250 2025-02-13 20:22:56 +11:00
Florent 51a6cb8982 nrf52 ble uart should work 2025-02-12 17:44:06 +01:00
Scott Powell 824f8c1349 * 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