• Using puck.js may affect Wi-Fi and Bluetooth connectivity.

    Wow, that's new! Do you have a screenshot?

    I have a feeling that may be Apple's way of saying: "this device manufacturer hasn't paid us to be iOS certified"

  • Hi Gordon,

    I've attached the screen shot from my iPad plus my code in case anything might be causing it in there! I have tried playing with the NRF.setServices values to see if it makes any difference but still the same result.

    NRF.setAdvertising({}, {name: "Zoom Remote"});
    var kb = require("ble_hid_keyboard");
    
    // NRF.setServices(undefined, { hid : kb.report });
    
    var services = {
      0x180a: {
        0x2a50: {
          value:     [
            0x01,           /* Use USB Vendor IDs */
            0xac, 0x05,     /* Apple */
            0x5a, 0x02,     /* Internal Keyboard */
            0x00, 0x00
          ],
          readable:  true,
        }
      }
    };
    
    NRF.setServices(services, {
      advertise: [ 0x180a ],
      hid: kb.report
    });
    
    function btnPressed() {
      // Send 'Command + Shift + A'
        kb.tap(kb.KEY.A, kb.MODIFY.LEFT_GUI | kb.MODIFY.SHIFT);
        // Now toggle LED status
        swap();
    }
    
    // keep track of the LED status on button pushes
    var LED_toggle = 1;
    
    function swap() {
      // determine to turn RED LED on/off
      switch(LED_toggle) {
        case 1:
          LED1.write(1);
          break;
        case 2:
          LED1.write(0);
          break;
      }
      // determine the LED status on/off
      LED_toggle = Math.wrap(LED_toggle, 2) + 1;
    }
    
    // trigger btnPressed whenever the button is pressed
    setWatch(btnPressed, BTN, {edge:"rising",repeat:true,debounce:50})­;
    

    Many Thanks
    Neil


    1 Attachment

    • Screenshot 2020-03-31 at 23.01.52.jpg
About

Avatar for Neil_ @Neil_ started