You are reading a single comment by @MobiTech and its replies. Click here to read the full conversation.
  • Hello, I try to debug my source code for creating a bluetooth communication. The sourcecode looks like this:

    NRF.connect(addr).then(function(d) {
      device = d;
      return d.getPrimaryService("service_uuid");
    }).then(function(s) {
      LED2.set();
      console.log("Service ",s);
      return s.getCharacteristic("characteristic_uuid­");
    }).then(function(c) {
      return c.readValue();
    }).then(function(d) {
      console.log("Got:", JSON.stringify(d.buffer));
      device.disconnect();
    }).catch(function() {
      console.log("Something's broken.");
    LED1.set();
    });
    

    I know that the example above is not valid.
    My general question: How can I debug a bluetooth communication? The problem:
    I connect the Puck with Windows to transmit the program to the puck. For establishing a connection from another device (e.g. Android Smartphone), I have to disconnect the Puck from Windows to be able to connect the Android Smartphone with the Puck. If I am disconnected, I will not see the console output on my computer. So how can I see the console result after disconnecting the puck? Could it be stored on the device?

About

Avatar for MobiTech @MobiTech started