You are reading a single comment by @louisld and its replies. Click here to read the full conversation.
  • Ok, I understand I can't put the characteristic I want in a random service.
    I tried to follow the requirement for the heart rate service but I still have the same problem. It's says Unable to find the service with UUID 0x2A37.

    var Ruuvitag = require("Ruuvitag");
    
    Ruuvitag.setEnvOn(true);
    
    NRF.setServices({
      0x180D: {
        0x2902:{
          value: 0,
          read: true,
          write: true,
        },
        0x2A37: {
          notify: true,
          value : [Math.round(Ruuvitag.getEnvData().temp)]­,
        }
      }
    }, { advertise: [0x180D] });
    
    setInterval(function () {
      NRF.updateServices({
        0x180D: {
          0x2A37: {
            value : [Math.round(Ruuvitag.getEnvData().temp)]­,
            notify: true
          }
        }
      });
    }, 1000);
    
About

Avatar for louisld @louisld started