Skip to content
Snippets Groups Projects
Commit 775c5d72 authored by Jakub Pawlowski's avatar Jakub Pawlowski
Browse files

Fix Heart Rate Service example

Name must be appended at end, not beginning.

Test: run bt-example-hr-server --advertise
Change-Id: I70909e0bfc94521c396908d0dcb78cf4439a7e63
parent cbc5b000
No related branches found
No related tags found
No related merge requests found
......@@ -64,7 +64,7 @@ class CLIBluetoothLeAdvertiserCallback
0x00};
data.push_back(name.length() + 1);
data.push_back(bluetooth::kEIRTypeCompleteLocalName);
data.insert(data.begin(), name.c_str(), name.c_str() + name.length());
data.insert(data.end(), name.c_str(), name.c_str() + name.length());
base::TimeDelta timeout;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment