-
-
Notifications
You must be signed in to change notification settings - Fork 674
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add support for setting BLE name from Trezor firmware #4504
base: main
Are you sure you want to change the base?
Conversation
|
804ee84
to
3259cda
Compare
3259cda
to
20347e8
Compare
core/embed/io/ble/stm32/ble.c
Outdated
unit_properties_t props; | ||
unit_properties_get(&props); | ||
|
||
uint8_t data[2 + BLE_ADV_NAME_LEN] = {0}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
3 + BLE_ADV_NAME_LEN
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, i added struct for this message f6dc982
core/embed/io/ble/inc/io/ble.h
Outdated
|
||
typedef struct { | ||
ble_command_type_t cmd_type; | ||
int connection_id; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
connection_id
seems to be unused now, isn't it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed 2e5e720.
I will add connection identification later, but it will probably be directly mac address of the central, so no point in keeping this integer.
Expands the ble_issue_command to support adding data.
Allows sending the name to NRF (this will then be used for advertising and GATT)