• Thanks to Gordon, I now have a puck for testing.
    It took some time to figure out, how to connect WebIDE from windows 10 puck.
    Chrome or webpage did not work, but installation of local WebIDE application made it

    At the end this is my way today:

    1. open settings for Bluetooth
    2. click add bluetooth device
    3. wait for my puck to appear and the click
    4. wait for ready, and close window
    5. puck should now appear in bluetooth devices
    6. now start local WebIDE (nw.exe)
    7. click connect
    8. select puck in list and it should work now.

    After switching off power from puck, all steps need to be done again.

    Next step was to setup puck as server

    function set(nr){
      var ble;
      switch(nr){
        case 1:
          ble = {0xBCDE : { 0xABCD : { value : "Hello", readable : true } },
                 0xCDEF : { 0xBCDE : { value : "Hallo", readable : true },
                            0x1234 : { value : "Egon", readable : true  } } }; break;
        case 2:
          ble = {0xBCDE : { 0xABCD :{ value : "hello", readable : true } } }; break;
      }
      NRF.setServices(ble,{});
      NRF.setAdvertising({}, {name: "MyPuck",showName: true,discoverable: true});
    }
    

    After starting this, I switched to my mobile phone and started nRF connect, but puck was not found.
    Puck appeared on my mobile only after disconnecting puck from WebIDE.
    Is there a way to have puck connected to WebIDE and see it in my mobile ?
    Otherwise testing would be difficult.

About

Avatar for JumJum @JumJum started