Skip to content
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

Definition of 'GattServer' device to search for #392

Open
kr0sh1 opened this issue Nov 27, 2021 · 3 comments
Open

Definition of 'GattServer' device to search for #392

kr0sh1 opened this issue Nov 27, 2021 · 3 comments

Comments

@kr0sh1
Copy link

kr0sh1 commented Nov 27, 2021

In the docu of the 'BLE_GattClient_CharacteristicUpdates' example it mentions that it's hardcoded (presumably) to search for a device called 'GattServer'.

Where is this defined and how can it be changed?

@noonfom
Copy link

noonfom commented Nov 29, 2021

Hi @kr0sh1, that appears to be hardcoded inside the get_peer_device_name() function of the GattClientProcess class.

Editing it seems nontrivial. @paul-szczepanek-arm could this be a private member with a public setter?

@kr0sh1
Copy link
Author

kr0sh1 commented Nov 29, 2021

@noonfom perfect, thanks for that!

@paul-szczepanek-arm
Copy link
Member

If you just want to change it in the example you can just edit the string here https://github.com/ARMmbed/mbed-os-ble-utils/blob/0da6cf31bd6688e4a3ecdf98b356e4767f3248c4/gatt_client_process.h#L46 to change what device name it's looking for.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants