Skip to content

Ble - #1827

Open
WantClue wants to merge 4 commits into
bitaxeorg:masterfrom
WantClue:ble
Open

Ble#1827
WantClue wants to merge 4 commits into
bitaxeorg:masterfrom
WantClue:ble

Conversation

@WantClue

Copy link
Copy Markdown
Collaborator

Integrates BLE for setup to make it even easier via apps on desktop or mobile to setup devices.

A python test script for how to integrate can be found here: https://github.com/WantClue/gatt-ble-py

@github-actions

github-actions Bot commented Jul 24, 2026

Copy link
Copy Markdown

Test Results

  2 files  ±0    2 suites  ±0   0s ⏱️ -1s
119 tests ±0  119 ✅ ±0  0 💤 ±0  0 ❌ ±0 
121 runs  ±0  121 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 6b62c8b. ± Comparison against base commit a191172.

♻️ This comment has been updated with latest results.

@WantClue
WantClue marked this pull request as ready for review July 26, 2026 22:04
@WantClue
WantClue requested a review from 0xf0xx0 July 26, 2026 22:14
@WantClue WantClue added the enhancement New feature or request label Jul 27, 2026

@0xf0xx0 0xf0xx0 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nits so far, im able to read and write the ssid uwu

Comment thread main/setup_ble.c
Comment on lines +77 to +92
static const ble_uuid128_t setup_ble_wifi_ssid_uuid = BLE_UUID128_INIT(
0xa8, 0x26, 0x1b, 0x36, 0x07, 0xea, 0xf5, 0xb7, 0x88, 0x46, 0xe1, 0x36, 0x3e, 0x48, 0xb5, 0xbe);
static const ble_uuid128_t setup_ble_wifi_password_uuid = BLE_UUID128_INIT(
0xa9, 0x26, 0x1b, 0x36, 0x07, 0xea, 0xf5, 0xb7, 0x88, 0x46, 0xe1, 0x36, 0x3e, 0x48, 0xb5, 0xbe);
static const ble_uuid128_t setup_ble_pool_url_uuid = BLE_UUID128_INIT(
0xaa, 0x26, 0x1b, 0x36, 0x07, 0xea, 0xf5, 0xb7, 0x88, 0x46, 0xe1, 0x36, 0x3e, 0x48, 0xb5, 0xbe);
static const ble_uuid128_t setup_ble_pool_port_uuid = BLE_UUID128_INIT(
0xab, 0x26, 0x1b, 0x36, 0x07, 0xea, 0xf5, 0xb7, 0x88, 0x46, 0xe1, 0x36, 0x3e, 0x48, 0xb5, 0xbe);
static const ble_uuid128_t setup_ble_pool_user_uuid = BLE_UUID128_INIT(
0xac, 0x26, 0x1b, 0x36, 0x07, 0xea, 0xf5, 0xb7, 0x88, 0x46, 0xe1, 0x36, 0x3e, 0x48, 0xb5, 0xbe);
static const ble_uuid128_t setup_ble_pool_password_uuid = BLE_UUID128_INIT(
0xad, 0x26, 0x1b, 0x36, 0x07, 0xea, 0xf5, 0xb7, 0x88, 0x46, 0xe1, 0x36, 0x3e, 0x48, 0xb5, 0xbe);
static const ble_uuid128_t setup_ble_status_uuid = BLE_UUID128_INIT(
0xae, 0x26, 0x1b, 0x36, 0x07, 0xea, 0xf5, 0xb7, 0x88, 0x46, 0xe1, 0x36, 0x3e, 0x48, 0xb5, 0xbe);
static const ble_uuid128_t setup_ble_command_uuid = BLE_UUID128_INIT(
0xaf, 0x26, 0x1b, 0x36, 0x07, 0xea, 0xf5, 0xb7, 0x88, 0x46, 0xe1, 0x36, 0x3e, 0x48, 0xb5, 0xbe);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: why start at a8?

Comment thread main/setup_ble.c
Comment on lines +505 to +511
/* Scan response: complete list of 128-bit service UUIDs. */
memset(&rsp_fields, 0, sizeof(rsp_fields));
rsp_fields.uuids128 = &setup_ble_service_uuid;
rsp_fields.num_uuids128 = 1;
rsp_fields.uuids128_is_complete = 1;

rc = ble_gap_adv_rsp_set_fields(&rsp_fields);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

im only seeing the ssid service

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants