BlueZ gatttool notifications

Multi tool use
Multi tool use












1















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









share|improve this question





























    1















    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









    share|improve this question



























      1












      1








      1








      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









      share|improve this question
















      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






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      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






















          1 Answer
          1






          active

          oldest

          votes


















          0














          just run it without --listen option.



          gatttool -b BC:6A:29:AC:02:57 –char-write-req -a 0x2E -n 0100





          share|improve this answer


























          • 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













          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
          });


          }
          });














          draft saved

          draft discarded


















          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









          0














          just run it without --listen option.



          gatttool -b BC:6A:29:AC:02:57 –char-write-req -a 0x2E -n 0100





          share|improve this answer


























          • 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


















          0














          just run it without --listen option.



          gatttool -b BC:6A:29:AC:02:57 –char-write-req -a 0x2E -n 0100





          share|improve this answer


























          • 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
















          0












          0








          0







          just run it without --listen option.



          gatttool -b BC:6A:29:AC:02:57 –char-write-req -a 0x2E -n 0100





          share|improve this answer















          just run it without --listen option.



          gatttool -b BC:6A:29:AC:02:57 –char-write-req -a 0x2E -n 0100






          share|improve this answer














          share|improve this answer



          share|improve this answer








          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





















          • 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




















          draft saved

          draft discarded




















































          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.




          draft saved


          draft discarded














          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





















































          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







          C0dL6okolS,1RchgVJKQJGuxlgRw
          5NWujzkcSP9iXg3jbGtoIC ChFmXnm4S7YzJwAI8WRk9 o5owsknzvfd48x4Q5EVEko

          Popular posts from this blog

          mysqli_query(): Empty query in /home/lucindabrummitt/public_html/blog/wp-includes/wp-db.php on line 1924

          Multiple Hosts connection in Hyperledger Fabric

          How to send String Array data to Server using php in android