Avatar for user83157

user83157

Member since Nov 2017 • Last active Dec 2017
  • 1 conversations
  • 3 comments

Most recent activity

  • in Puck.js, Pixl.js and MDBT42
    Avatar for user83157

    Your fix seems to work

    Thanks for the fast solution! :)

  • in Puck.js, Pixl.js and MDBT42
    Avatar for user83157

    Thanks for the fast reply.

    I'm currently running on 1V94 with only the code I have posted above.

  • in Puck.js, Pixl.js and MDBT42
    Avatar for user83157

    Hello,

    I am trying to communicate with another device over Bluetooth.
    But everytime I receive a packet on the Puck.js it uses memory and don't release it.
    So after a few packets, the memory becomes less an I get an error Message --> MEMORY_BUSY.
    On the Screenshot you can see how the memory decreases. (it starts a 1800 free blocks)
    After I got the MEMORY_BUSY message it no longer receive every packet, so I miss most of the packets.

    I think there must be a Memory Leak in the "characteristicvaluechanged" function
    Do someone have simular problems and have found a solution for this problem ?

      NRF.connect("00:13:43:0A:EE:79").then(
        function(d) {
          print("connected");
          device = d;
          return device.getPrimaryService("180D");
        }
      ).then(
        function(s){
          service = s;
          return service.getCharacteristic("2A37");
        }
      ).then(
        function(rd){
          read_char = rd;
          read_char.on('characteristicvaluechanged­', function(e) {
            print("received");
            print(process.memory().free);
            event = e;
          });
          return read_char.startNotifications();
        }
      );
    
Actions