Ble - #1827
Open
WantClue wants to merge 4 commits into
Open
Conversation
WantClue
marked this pull request as ready for review
July 26, 2026 22:04
0xf0xx0
requested changes
Jul 27, 2026
0xf0xx0
left a comment
Collaborator
There was a problem hiding this comment.
nits so far, im able to read and write the ssid uwu
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); |
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); |
Collaborator
There was a problem hiding this comment.
im only seeing the ssid service
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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