• So, then I tried the compact example shown below. There is a pause, then the WEB IDE shows "Disconnected". Note: I'm using 1v92.21.

    var gatt;
    NRF.requestDevice({ timeout:2000, filters: [{ services: '0xbbc21523-008e-fe6b-28ee-d6a44f9cb5da'­ }]}).then(
      device => device.gatt.connect()).then(
      g => (gatt=g).getPrimaryService("0xbbc21523-0­08e-fe6b-28ee-d6a44f9cb5da")).then(
      service => service.getCharacteristic("0xbbc21525-00­8e-fe6b-28ee-d6a44f9cb5da")).then(
      characteristic => characteristic.writeValue(oxff)).then(
      () => { gatt.disconnect(); console.log("Done!"); } );
    
    
About

Avatar for billsalt @billsalt started