You are reading a single comment by @titaniumwhite and its replies. Click here to read the full conversation.
  • Hi guys,
    I'm trying to connect a Ruuvitag supporting Espruino to my laptop through Noble.js. I need to collect some data through a sensor soldered on the Ruuvitag and to send them to the laptop.
    I flashed this code through the Espruino Web IDE to make the Ruuvi notify the central module as soon as it collects data, but I guess I have misunderstood something since the Ruuvi is not connecting nor Bluetooth flashing anymore. There is the screenshot of nRF Connect connected to the Ruuvi in bootloading below, it seems there is no more the Nordic UART Service... oops.

    const serviceUUID = '6e400001b5a3f393e0a9e50e24dcca9e';
    const characteristicUUID = '6e400003b5a3f393e0a9e50e24dcca9e';
    
    NRF.setServices({
        serviceUUID : {
          characteristicUUID : {
            value : 0,
            readable : true,
            notify : true
          }
        }
      }, { advertise : [serviceUUID] });
    
    

    Luckily I have one more Ruuvi and I really need to make it communicate with the laptop.
    How can I make it?
    Do I have to create my own service and my own notify characteristic?
    Or do I have to use the UART characteristic for notification as above?


    1 Attachment

    • WhatsApp Image 2020-12-03 at 10.44.37.jpeg
About