BlueZ gatttool notifications
I am working over the BlueZ Library gatttool but when I run the gatttool command as mentioned below, it starts giving me notification endlessly. Is there is any way, that it gives the notification once and then exit the command?
Command:
gatttool -b BC:6A:29:AC:02:57 –char-write-req -a 0x2E -n 0100 –listen;
Output is:
Characteristic value/descriptor: 00
Characteristic value/descriptor: 01
Characteristic value was written successfully
Notification handle = 0x002d value: 01 06 40
Notification handle = 0x002d value: 01 05 40
Notification handle = 0x002d value: 01 06 40
Notification handle = 0x002d value: 01 06 44
Notification handle = 0x002d value: 01 05 41
Notification handle = 0x002d value: 01 06 41
....endless notifications..... I just need once
bluetooth
add a comment |
I am working over the BlueZ Library gatttool but when I run the gatttool command as mentioned below, it starts giving me notification endlessly. Is there is any way, that it gives the notification once and then exit the command?
Command:
gatttool -b BC:6A:29:AC:02:57 –char-write-req -a 0x2E -n 0100 –listen;
Output is:
Characteristic value/descriptor: 00
Characteristic value/descriptor: 01
Characteristic value was written successfully
Notification handle = 0x002d value: 01 06 40
Notification handle = 0x002d value: 01 05 40
Notification handle = 0x002d value: 01 06 40
Notification handle = 0x002d value: 01 06 44
Notification handle = 0x002d value: 01 05 41
Notification handle = 0x002d value: 01 06 41
....endless notifications..... I just need once
bluetooth
add a comment |
I am working over the BlueZ Library gatttool but when I run the gatttool command as mentioned below, it starts giving me notification endlessly. Is there is any way, that it gives the notification once and then exit the command?
Command:
gatttool -b BC:6A:29:AC:02:57 –char-write-req -a 0x2E -n 0100 –listen;
Output is:
Characteristic value/descriptor: 00
Characteristic value/descriptor: 01
Characteristic value was written successfully
Notification handle = 0x002d value: 01 06 40
Notification handle = 0x002d value: 01 05 40
Notification handle = 0x002d value: 01 06 40
Notification handle = 0x002d value: 01 06 44
Notification handle = 0x002d value: 01 05 41
Notification handle = 0x002d value: 01 06 41
....endless notifications..... I just need once
bluetooth
I am working over the BlueZ Library gatttool but when I run the gatttool command as mentioned below, it starts giving me notification endlessly. Is there is any way, that it gives the notification once and then exit the command?
Command:
gatttool -b BC:6A:29:AC:02:57 –char-write-req -a 0x2E -n 0100 –listen;
Output is:
Characteristic value/descriptor: 00
Characteristic value/descriptor: 01
Characteristic value was written successfully
Notification handle = 0x002d value: 01 06 40
Notification handle = 0x002d value: 01 05 40
Notification handle = 0x002d value: 01 06 40
Notification handle = 0x002d value: 01 06 44
Notification handle = 0x002d value: 01 05 41
Notification handle = 0x002d value: 01 06 41
....endless notifications..... I just need once
bluetooth
bluetooth
edited May 1 '15 at 8:53
Michael Lindman
1,48421322
1,48421322
asked May 1 '15 at 8:08
Aditya NagalAditya Nagal
613
613
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
just run it without --listen
option.
gatttool -b BC:6A:29:AC:02:57 –char-write-req -a 0x2E -n 0100
That results in no notification at all. The question seems to be about waiting till the first one.
– Dimitry
Apr 17 '17 at 11:59
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f616743%2fbluez-gatttool-notifications%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
just run it without --listen
option.
gatttool -b BC:6A:29:AC:02:57 –char-write-req -a 0x2E -n 0100
That results in no notification at all. The question seems to be about waiting till the first one.
– Dimitry
Apr 17 '17 at 11:59
add a comment |
just run it without --listen
option.
gatttool -b BC:6A:29:AC:02:57 –char-write-req -a 0x2E -n 0100
That results in no notification at all. The question seems to be about waiting till the first one.
– Dimitry
Apr 17 '17 at 11:59
add a comment |
just run it without --listen
option.
gatttool -b BC:6A:29:AC:02:57 –char-write-req -a 0x2E -n 0100
just run it without --listen
option.
gatttool -b BC:6A:29:AC:02:57 –char-write-req -a 0x2E -n 0100
edited Nov 23 '15 at 9:51
hg8
9,929125591
9,929125591
answered Nov 23 '15 at 1:07
ZskdanZskdan
101
101
That results in no notification at all. The question seems to be about waiting till the first one.
– Dimitry
Apr 17 '17 at 11:59
add a comment |
That results in no notification at all. The question seems to be about waiting till the first one.
– Dimitry
Apr 17 '17 at 11:59
That results in no notification at all. The question seems to be about waiting till the first one.
– Dimitry
Apr 17 '17 at 11:59
That results in no notification at all. The question seems to be about waiting till the first one.
– Dimitry
Apr 17 '17 at 11:59
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f616743%2fbluez-gatttool-notifications%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown